-
Notifications
You must be signed in to change notification settings - Fork 318
Drop 3.8 support #1604
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
Drop 3.8 support #1604
Conversation
samuelcolvin
left a comment
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.
otherwise LGTM
| 'keys_schema': get_schema(obj.__args__[0], definitions), | ||
| 'values_schema': get_schema(obj.__args__[1], definitions), | ||
| } | ||
| elif issubclass(origin, Type): |
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.
Is this right?
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 don't know if this is documented in Python, but typing.* aliases define __subclasscheck__ so this works as expected. Still, using the builtin type is way cleaner.
CodSpeed Performance ReportMerging #1604 will not alter performanceComparing Summary
|
davidhewitt
left a comment
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.
Nice! Very diligent to go clean up all the type hints too :)
Original-commit-hash: b426cce
Original-commit-link: pydantic/pydantic-core@b426cce
Paired with pydantic/pydantic#11258 on the
pydanticend