-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add extra
parameter to the validate functions
#12233
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
Conversation
70df5a5
to
dad30a1
Compare
dad30a1
to
12c2de7
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
CodSpeed Performance ReportMerging #12233 will improve performances by 23.71%Comparing Summary
Benchmarks breakdown
|
Please review. This PR requires the recent pydantic-core 2.40.0 release, so I've included the version bump and test fixes. |
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.
Thanks, this looks good to me. The pydantic-core
version got bumped separately, so if you rebase on main the diff should be possible to clean up a fair bit.
12c2de7
to
da9ba3f
Compare
Thanks for your quick review, ready to merge now I think. Resolves #9278. |
Change Summary
This PR depends on the following PR in
pydantic-core
: pydantic/pydantic-core#1722.This change adds an extra parameter to the validation functions, overriding any other model configuration.
Related issue number
feature #9278
Checklist
Selected Reviewer: @DouweM