Download Python/train/3.13/variadic-generics/modern_28.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 181 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_28.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/variadic-generics/modern_28.py
-
curl -L -o modern_28.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_28.py
181 Bytes
| T = TypeVar('T') | |
| Foo = Tuple[T, *Ts] | |
| # T bound to str, Ts to Tuple[int] | |
| Foo[str, int] | |
| # T bound to float, Ts to Tuple[()] | |
| Foo[float] | |
| # T bound to Any, Ts to an Tuple[Any, ...] | |
| Foo | |