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
ClassVar
PEP 544,
Protocol
PEP 561, distributing typed packages
PEP 563,
from __future__ import annotations
PEP 585, subscriptable generics in the standard library
PEP 586,
Literal
PEP 589,
TypedDict
PEP 591,
Final
PEP 593,
Annotated
PEP 604, union syntax with
|
PEP 612,
ParamSpec
PEP 613,
TypeAlias
PEP 646, variadic generics and
TypeVarTuple
PEP 647,
TypeGuard
PEP 655,
Required
andNotRequired
PEP 673,
Self
PEP 675,
LiteralString
PEP 677 (rejected), callable type syntax
PEP 681 (draft),
@dataclass_transform()