Skip to content

Conversation

@erictraut
Copy link
Collaborator

This PR attempts to update all places in the spec where the old-style TypeVar, ParamSpec and TypeVarTuple constructors 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.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@erictraut
Copy link
Collaborator Author

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.

Copy link
Member

@JelleZijlstra JelleZijlstra left a 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.

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@erictraut erictraut merged commit 2702b01 into python:main Sep 29, 2025
4 checks passed
@erictraut erictraut deleted the modern_generics branch September 29, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants