mirror of https://github.com/python/cpython.git
![]() 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> |
||
---|---|---|
.. | ||
bytearrayobject.c.h | ||
bytesobject.c.h | ||
classobject.c.h | ||
codeobject.c.h | ||
complexobject.c.h | ||
descrobject.c.h | ||
dictobject.c.h | ||
enumobject.c.h | ||
floatobject.c.h | ||
funcobject.c.h | ||
listobject.c.h | ||
longobject.c.h | ||
memoryobject.c.h | ||
moduleobject.c.h | ||
odictobject.c.h | ||
structseq.c.h | ||
tupleobject.c.h | ||
typeobject.c.h | ||
typevarobject.c.h | ||
unicodeobject.c.h |