Download Python/train/3.13/protocol/legacy_03.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/protocol/legacy_03.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/protocol/legacy_03.py
-
curl -L -o legacy_03.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/protocol/legacy_03.py
334 Bytes
| from zope.interface import invariant | |
| def required_contact(obj): | |
| if not (obj.email or obj.phone): | |
| raise Exception("At least one contact info is required") | |
| class IPerson(Interface): | |
| name = Attribute("Name") | |
| email = Attribute("Email Address") | |
| phone = Attribute("Phone Number") | |
| invariant(required_contact) | |