Type Annotation: tuples
from typing import Any
simple: tuple = (1, 1,)
same_simple: tuple[Any, ...] = (1, 1, 's')
type_2int: tuple[int, int] = (1, 1,)
mix_types: tuple[int, str, float] = (1, 's', 0.5,)
all_ints: tuple[int, ...] = (1, 1, 1)
ints_strs: tuple[int | str, ...] = (1, 1, 's')
- tuple accepts any number of type arguments
...
as second argument denotes any length