Skip to content
masterclass Buddy

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.

Subscribe
  • Any
  • Tuple
  • TypeVar
  • NamedTuple

Source: typing — Support for type hints — Python 3.15.2 documentation. Checked 2026-11-03.