Download lib/python3.12/site-packages/datasets/utils/doc_utils.py from parallel-reasoner/env-full: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/parallel-reasoner/env-full/resolve/a2585bd5ca1cf640fa361bd20177ded829caaa8d/lib/python3.12/site-packages/datasets/utils/doc_utils.py
- Command line
-
hf download hf://parallel-reasoner/env-full@a2585bd5ca1cf640fa361bd20177ded829caaa8d/lib/python3.12/site-packages/datasets/utils/doc_utils.py
-
curl -L -o doc_utils.py https://huggingface.co/parallel-reasoner/env-full/resolve/a2585bd5ca1cf640fa361bd20177ded829caaa8d/lib/python3.12/site-packages/datasets/utils/doc_utils.py
407 Bytes
| from typing import Callable | |
| def is_documented_by(function_with_docstring: Callable): | |
| """Decorator to share docstrings across common functions. | |
| Args: | |
| function_with_docstring (`Callable`): Name of the function with the docstring. | |
| """ | |
| def wrapper(target_function): | |
| target_function.__doc__ = function_with_docstring.__doc__ | |
| return target_function | |
| return wrapper | |