Static Typing with Python¶
Guides¶
Reference¶
Indices and tables¶
Discussions and Support¶
Typing PEPs¶
PEP 483, background on type hints
PEP 484, type hints
PEP 526, variable annotations and
ClassVarPEP 544,
ProtocolPEP 561, distributing typed packages
PEP 563,
from __future__ import annotationsPEP 585, subscriptable generics in the standard library
PEP 586,
LiteralPEP 589,
TypedDictPEP 591,
FinalPEP 593,
AnnotatedPEP 604, union syntax with
|PEP 612,
ParamSpecPEP 613,
TypeAliasPEP 646, variadic generics and
TypeVarTuplePEP 647,
TypeGuardPEP 655,
RequiredandNotRequiredPEP 673,
SelfPEP 675,
LiteralStringPEP 677 (rejected), callable type syntax
PEP 681 (draft),
@dataclass_transform()