Python · Type Alias
Tuple
Python typing lets you describe tuple contents. Use one type per fixed position, or use tuple[T, ...] for any-length tuples containing only T.
Last updated
- Since
- 3.5
Syntax
tuple[T1, T2, ...]
tuple[T, ...]
tuple[()]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AnyTupleTypeVarNamedTuple