File size: 159 Bytes
5eb110b
 
 
 
 
1
2
3
4
5
6
T = TypeVar('T')
Foo = Tuple[T, *Ts]

Foo[str, int]         # T bound to str, Ts to Tuple[int]
Foo[str, int, float]  # T bound to str, Ts to Tuple[int, float]