-
Notifications
You must be signed in to change notification settings - Fork 282
Updated the typing spec to use modern (PEP 695) generics syntax #2089
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
AlexWaygood
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.
Thanks!
Co-authored-by: Shantanu <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
|
Thanks for the review @AlexWaygood. I think I've addressed your feedback. I'm going to leave this unmerged a bit longer to give others a chance to review if they'd like. |
JelleZijlstra
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.
Need to run now, but noticed a few small things.
JelleZijlstra
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.
Thank you!
This PR attempts to update all places in the spec where the old-style
TypeVar,ParamSpecandTypeVarTupleconstructors are used in code samples, with the exception of samples that are intended to explain the older syntax. This should improve readability.Since it doesn't make any substantive changes to the spec, I don't think this requires approval from the full typing council, but it would be good to have a thorough review.