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 <[email protected]> Co-authored-by: Eric Traut <[email protected]> Co-authored-by: Larry Hastings <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
J
Jelle Zijlstra committed
24d8b88420b81fc60aeb0cbcacef1e72d633824a
Parent: fdafdc2
Committed by GitHub <[email protected]>
on 5/16/2023, 3:36:23 AM