Glossary namespace
typing
5 documented Python terms beneath this namespace.
typing
5 termstyping.GenericDeclares a class parameterized by one or more type variables on pre-3.12-compatible syntax.typing.ParamSpecCaptures a callable parameter list so decorators and adapters can preserve the original call signature.typing.ProtocolDescribes structural compatibility: an object qualifies by providing the required operations, not by inheriting a named base.typing.TypeVarDeclares a type variable so a type checker can preserve relationships between input and output types.typing.TypeVarTupleRepresents a variable-length tuple of type variables for APIs whose type shape has an arbitrary number of dimensions or positions.