Download Python/train/3.13/dataclass-transform/modern_03.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/dataclass-transform/modern_03.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/dataclass-transform/modern_03.py
-
curl -L -o modern_03.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/dataclass-transform/modern_03.py
368 Bytes
| # The ``ModelMeta`` metaclass and ``ModelBase`` class are defined by | |
| # a library. This could be in a type stub or inline. | |
| class ModelMeta(type): ... | |
| class ModelBase(metaclass=ModelMeta): ... | |
| # The ``ModelBase`` class can now be used to create new model | |
| # subclasses, like this: | |
| class CustomerModel(ModelBase): | |
| id: int | |
| name: str | |