-
Notifications
You must be signed in to change notification settings - Fork 253
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
Allow case where __pydantic_extra__
is None
, even if extra='allow'
#1236
Conversation
I can either add a test here, or in the existing serialize as any PR (which currently has a failing test bc of this bug), or in |
Please review |
CodSpeed Performance ReportMerging #1236 will improve performances by 43.9%Comparing Summary
Benchmarks breakdown
|
A test here would be nice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure on the justification, maybe a test is helpful to explain why?
I couldn't resist some Rust golfing...
Co-authored-by: David Hewitt <david.hewitt@pydantic.dev>
Alright, odd issue, the current test passes, but if you use |
I think worth addressing this in a different issue, I just discovered this while trying to write the test here |
Fix pydantic/pydantic#9043. The issue reported has been simplified in the example below:
For the following setup:
Before this fix:
After this fix:
Selected Reviewer: @adriangb