◐ Shell
clean mode source ↗

Update generics reference to use PEP 695 type parameter syntax by BHUVANSH855 · Pull Request #2242 · python/typing

Thanks for the review! @JelleZijlstra

I’ve now updated the generics reference to consistently use the PEP 695 type parameter syntax in all applicable examples, including generic functions, methods, class methods, and bounded type parameters.

I kept TypeVar usage only in sections where it is still required (such as variance, constraints, decorators, and ParamSpec), so the document stays accurate for those advanced cases.

Please let me know if anything else should be refined.