Download Python/train/3.13/variadic-generics/modern_34.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_34.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/variadic-generics/modern_34.py
-
curl -L -o modern_34.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_34.py
428 Bytes
| Shrubbery = Tuple[*Ts, T1, T2] | |
| Shrubbery[str, bool] # T2=bool, T1=str, Ts=Tuple[()] | |
| Shrubbery[str, bool, float] # T2=float, T1=bool, Ts=Tuple[str] | |
| Shrubbery[str, bool, float, int] # T2=int, T1=float, Ts=Tuple[str, bool] | |
| Ptang = Tuple[T1, *Ts, T2, T3] | |
| Ptang[str, bool, float] # T1=str, T3=float, T2=bool, Ts=Tuple[()] | |
| Ptang[str, bool, float, int] # T1=str, T3=int, T2=float, Ts=Tuple[bool] | |