-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Standardize __get_pydantic_core_schema__
signature
#7415
Conversation
Deploying with
|
Latest commit: |
e2ad3ed
|
Status: | ✅ Deploy successful! |
Preview URL: | https://03b78962.pydantic-docs2.pages.dev |
Branch Preview URL: | https://fix-get-pydantic-core-schema.pydantic-docs2.pages.dev |
6746688
to
e2ad3ed
Compare
please review |
__get_pydantic_core_schema__
signature__get_pydantic_core_schema__
signature
@@ -360,6 +363,7 @@ def __get_pydantic_json_schema__( | |||
def __get_pydantic_core_schema__( | |||
cls, | |||
source: type[Any], | |||
handler: _annotated_handlers.GetCoreSchemaHandler, |
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.
Are those needed in this file?
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.
Actually, not needed because they are working without them. This is just to make all the __get_pydantic_core_schema__
signature similar.
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 see why you changed the other files, but since this is optional here, I would leave without it.
Anyway, not a blocker. Do as you think is more appropriate. 🙏
@@ -360,6 +363,7 @@ def __get_pydantic_json_schema__( | |||
def __get_pydantic_core_schema__( | |||
cls, | |||
source: type[Any], | |||
handler: _annotated_handlers.GetCoreSchemaHandler, |
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 see why you changed the other files, but since this is optional here, I would leave without it.
Anyway, not a blocker. Do as you think is more appropriate. 🙏
Fixes #7407
Selected Reviewer: @Kludex