PEP 646: Variadic Generics

GPTKB entity

Statements (28)
Predicate Object
gptkbp:instanceOf Python Enhancement Proposal
gptkbp:author Matthew Rahtz
Pradeep Kumar Srinivasan
gptkbp:category Typing
gptkbp:created 2021-05-11
gptkbp:discusses Python Typing SIG
[email protected]
https://www.w3.org/2000/01/rdf-schema#label PEP 646: Variadic Generics
gptkbp:implementedIn gptkb:Python_3.11
gptkbp:JEP_number 646
gptkbp:motive Enable type hinting for functions/classes that accept or return an arbitrary number of types, such as for numpy-like array shapes.
gptkbp:PEP-URL https://peps.python.org/pep-0646/
gptkbp:plotSummary Introduces support for variadic generics in Python's type system, allowing type parameters to be specified as an arbitrary number of types.
gptkbp:proposedBy TypeVarTuple
Unpack
gptkbp:Python-Version 3.11
gptkbp:replacedBy nan
gptkbp:seeAlso gptkb:PEP_484
gptkb:PEP_585
gptkbp:status Final
gptkbp:superseded-by nan
gptkbp:title Variadic Generics
gptkbp:topic generics
type system
type hinting
gptkbp:type Standards Track
gptkbp:bfsParent gptkb:Python_3.11
gptkbp:bfsLayer 6