Download Python/train/3.13/param-spec/modern_07.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/param-spec/modern_07.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/param-spec/modern_07.py
-
curl -L -o modern_07.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/param-spec/modern_07.py
484 Bytes
| def bar(x: int, *args: bool) -> int: ... | |
| def add(x: Callable[P, int]) -> Callable[Concatenate[str, P], bool]: ... | |
| add(bar) # Should return (__a: str, x: int, *args: bool) -> bool | |
| def remove(x: Callable[Concatenate[int, P], int]) -> Callable[P, bool]: ... | |
| remove(bar) # Should return (*args: bool) -> bool | |
| def transform( | |
| x: Callable[Concatenate[int, P], int] | |
| ) -> Callable[Concatenate[str, P], bool]: ... | |
| transform(bar) # Should return (__a: str, *args: bool) -> bool | |