Type System ReferenceΒΆ
Contents:
- Generics
- Defining generic classes
- Defining subclasses of generic classes
- Generic functions
- Generic methods and generic self
- Automatic self types using typing.Self
- Variance of generic types
- Type variables with upper bounds
- Type variables with constraints
- Declaring decorators
- Generic protocols
- Generic type aliases
- Generic class internals
- Credits
- Protocols and structural subtyping
- Typing Best Practices
- Testing and Ensuring Type Annotation Quality
- typing Module Documentation