Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support properly custom root type with from_orm() #2237

Merged
merged 4 commits into from Feb 13, 2021

Conversation

PrettyWood
Copy link
Member

@PrettyWood PrettyWood commented Jan 4, 2021

Change Summary

Related issue number

#2100 (comment)

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)

@codecov
Copy link

codecov bot commented Jan 4, 2021

Codecov Report

Merging #2237 (202fe86) into master (13a5c7d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #2237   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         4199      4199           
  Branches       854       854           
=========================================
  Hits          4199      4199           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13a5c7d...202fe86. Read the comment docs.

Copy link

@scorpp scorpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Way better than temp wrapper class

@PrettyWood PrettyWood changed the title fix: support custom root type with from_orm() fix: support properly custom root type with parse_obj and from_orm() Jan 4, 2021
@PrettyWood PrettyWood changed the title fix: support properly custom root type with parse_obj and from_orm() fix: support properly custom root type with from_orm() Jan 5, 2021
@PrettyWood PrettyWood marked this pull request as ready for review January 5, 2021 11:43
@samuelcolvin samuelcolvin merged commit b076567 into pydantic:master Feb 13, 2021
@PrettyWood PrettyWood deleted the fix/root-from-orm branch February 13, 2021 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants