Datasets:
Download Python/train/3.13/param-spec/modern_12.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/param-spec/modern_12.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/param-spec/modern_12.py
-
curl -L -o modern_12.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/param-spec/modern_12.py
568 Bytes
| def add(f: Callable[P, int]) -> Callable[Concatenate[str, P], None]: | |
| def foo(s: str, *args: P.args, **kwargs: P.kwargs) -> None: # Accepted | |
| pass | |
| def bar(*args: P.args, s: str, **kwargs: P.kwargs) -> None: # Rejected | |
| pass | |
| return foo # Accepted | |
| def remove(f: Callable[Concatenate[int, P], int]) -> Callable[P, None]: | |
| def foo(*args: P.args, **kwargs: P.kwargs) -> None: | |
| f(1, *args, **kwargs) # Accepted | |
| f(*args, 1, **kwargs) # Rejected | |
| f(*args, **kwargs) # Rejected | |
| return foo | |