Download lib/python3.9/site-packages/IPython/utils/sentinel.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/IPython/utils/sentinel.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/IPython/utils/sentinel.py
-
curl -L -o sentinel.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/IPython/utils/sentinel.py
421 Bytes
| """Sentinel class for constants with useful reprs""" | |
| # Copyright (c) IPython Development Team. | |
| # Distributed under the terms of the Modified BSD License. | |
| class Sentinel(object): | |
| def __init__(self, name, module, docstring=None): | |
| self.name = name | |
| self.module = module | |
| if docstring: | |
| self.__doc__ = docstring | |
| def __repr__(self): | |
| return str(self.module)+'.'+self.name | |