Datasets:
Download Python/train/3.13/variadic-generics/modern_21.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_21.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/variadic-generics/modern_21.py
-
curl -L -o modern_21.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/variadic-generics/modern_21.py
255 Bytes
| class Process: | |
| def __init__( | |
| self, | |
| target: Callable[[*Ts], None], | |
| args: Tuple[*Ts], | |
| ) -> None: ... | |
| def func(arg1: int, arg2: str) -> None: ... | |
| Process(target=func, args=(0, 'foo')) # Valid | |
| Process(target=func, args=('foo', 0)) # Error | |