Static Typing with Python¶
Guides¶
Reference¶
See also
The documentation at https://mypy.readthedocs.io/ is relatively accessible and complete.
Specification¶
- Specification for the Python type system
- The Python Type System
- Meta-topics
- Type system concepts
- Type annotations
- Special types in annotations
- Generics
- Type qualifiers
- Class type assignability
- Type aliases
- Literals
- Protocols
- Callables
- Constructors
@overload
- Exceptions
- Dataclasses
- Typed dictionaries
- Tuples
- Named Tuples
- Enumerations
- Type narrowing
- Type checker directives
- Distributing type information
- Historical and deprecated features
- Glossary
Indices and tables¶
Discussions and Support¶
Typing PEPs¶
See https://peps.python.org/topic/typing for a list of all typing-related PEPs.