Typing operator to conceptually mark an object as having been unpacked.
typing.Unpack
Ts = TypeVarTuple('Ts')
tup: tuple[*Ts]
Effectively does:
tup: tuple[Unpack[Ts]]
In older versions of Python, TypeVarTuple and Unpack
are located in the `typing_extensions` backports package.
from typing_extensions import TypeVarTuple, Unpack
Ts = TypeVarTuple('Ts')
tup: tuple[*Ts] Syntax error on Python <= 3.10!
tup: tuple[Unpack[Ts]] Semantically equivalent, and backwards-compatible