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