Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
13
venv/Lib/site-packages/ipywidgets/widgets/docutils.py
Normal file
13
venv/Lib/site-packages/ipywidgets/widgets/docutils.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# 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):
|
||||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue