Download Python/train/3.13/dataclass-transform/modern_04.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/dataclass-transform/modern_04.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/dataclass-transform/modern_04.py
-
curl -L -o modern_04.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/dataclass-transform/modern_04.py
626 Bytes
| # Indicate that the ``create_model`` function assumes keyword-only | |
| # parameters for the synthesized ``__init__`` method unless it is | |
| # invoked with ``kw_only=False``. It always synthesizes order-related | |
| # methods and provides no way to override this behavior. | |
| def create_model( | |
| *, | |
| frozen: bool = False, | |
| kw_only: bool = True, | |
| ) -> Callable[[Type[_T]], Type[_T]]: ... | |
| # Example of how this decorator would be used by code that imports | |
| # from this library: | |
| class CustomerModel: | |
| id: int | |
| name: str | |