-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Handle all schema generation errors in InstanceOf
#12705
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
base: main
Are you sure you want to change the base?
Conversation
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.
Ideally we'd have a base exception encapsulating all of them, but this isn't trivial to do because some exceptions are used outside schema generation as well
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.
Do we need to handle this same group in multiple places? If so, maybe worth defining a private tuple _SCHEMA_GENERATION_EXCEPTIONS?
Deploying pydantic-docs with
|
| Latest commit: |
87e6029
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d770c1c2.pydantic-docs.pages.dev |
| Branch Preview URL: | https://vp-instance-of-errors.pydantic-docs.pages.dev |
355b869 to
77f95b0
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
Change Summary
Related issue number
Fixes #12704.
Checklist