Download Python/train/3.13/protocol/modern_21.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/protocol/modern_21.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/protocol/modern_21.py
-
curl -L -o modern_21.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/protocol/modern_21.py
298 Bytes
| # file default_config.py | |
| timeout = 100 | |
| one_flag = True | |
| other_flag = False | |
| # file main.py | |
| import default_config | |
| from typing import Protocol | |
| class Options(Protocol): | |
| timeout: int | |
| one_flag: bool | |
| other_flag: bool | |
| def setup(options: Options) -> None: | |
| ... | |
| setup(default_config) # OK | |