SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72125 0 9 Python

gh-103763: Implement PEP 695 (#103764)

This implements PEP 695, Type Parameter Syntax. It adds support for:

- Generic functions (def func[T](): ...)
- Generic classes (class X[T](): ...)
- Type aliases (type X = ...)
- New scoping when the new syntax is used within a class body
- Compiler and interpreter changes to support the new syntax and scoping rules 

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Eric Traut <eric@traut.com>
Co-authored-by: Larry Hastings <larry@hastings.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
J
Jelle Zijlstra committed
24d8b88420b81fc60aeb0cbcacef1e72d633824a
Parent: fdafdc2
Committed by GitHub <noreply@github.com> on 5/16/2023, 3:36:23 AM