Download Python/train/3.10/variable-annotations/modern_13.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.10/variable-annotations/modern_13.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.10/variable-annotations/modern_13.py
-
curl -L -o modern_13.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.10/variable-annotations/modern_13.py
211 Bytes
| class Cls: | |
| pass | |
| c = Cls() | |
| c.x: int = 0 # Annotates c.x with int. | |
| c.y: int # Annotates c.y with int. | |
| d = {} | |
| d['a']: int = 0 # Annotates d['a'] with int. | |
| d['b']: int # Annotates d['b'] with int. | |