Static Typing with Python¶
Guides¶
Reference¶
Indices and tables¶
Discussions and Support¶
Typing PEPs¶
https://peps.python.org/topic/typing
PEP 482, literature overview on type hints
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 649 (draft),
from __future__ import co_annotationsPEP 655,
RequiredandNotRequiredPEP 673,
SelfPEP 675,
LiteralStringPEP 677 (rejected),
(int, str) -> boolcallable type syntaxPEP 681
@dataclass_transform()PEP 688 (draft),
BufferPEP 692
Unpack[TypedDict]for**kwargsPEP 695 (draft),
class Class[T]:type parameter syntaxPEP 696 (draft), defaults for type variables
PEP 698
@overridePEP 702 (draft),
@deprecated()