Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /ipywidgets /widgets /docutils.py
| # Copyright (c) Jupyter Development Team. | |
| # Distributed under the terms of the Modified BSD License. | |
| def doc_subst(snippets): | |
| """ Substitute format strings in class or function docstring """ | |
| def decorator(cls): | |
| # Running python with -OO will discard docstrings (__doc__ is None). | |
| if cls.__doc__ is not None: | |
| # Strip the snippets to avoid trailing new lines and whitespace | |
| stripped_snippets = { | |
| key: snippet.strip() for (key, snippet) in snippets.items() | |
| } | |
| cls.__doc__ = cls.__doc__.format(**stripped_snippets) | |
| return cls | |
| return decorator | |
Xet Storage Details
- Size:
- 639 Bytes
- Xet hash:
- cb048d634b3f6528de3aeb747be2a96f9a6c4053fedafd67f648a07e85dba460
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.