Connected Python reference
Follow the names.
Definitions, runnable examples, version notes, and the neighboring concepts that make Python vocabulary useful in practice.
Directory
Python, by namespace.
5 terms found
Standard library module
All 5 terms →typing
- GenericDeclares a class parameterized by one or more type variables on pre-3.12-compatible syntax.typing.Generic
- ParamSpecCaptures a callable parameter list so decorators and adapters can preserve the original call signature.typing.ParamSpec
- ProtocolDescribes structural compatibility: an object qualifies by providing the required operations, not by inheriting a named base.typing.Protocol
- TypeVarDeclares a type variable so a type checker can preserve relationships between input and output types.typing.TypeVar
- TypeVarTupleRepresents a variable-length tuple of type variables for APIs whose type shape has an arbitrary number of dimensions or positions.typing.TypeVarTuple