We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0d4adb commit 87fa3a1Copy full SHA for 87fa3a1
proplot/internals/docstring.py
@@ -9,10 +9,12 @@
9
10
11
def add_snippets(func):
12
- """Decorator that dedents docstrings with `inspect.getdoc` and adds
+ """
13
+ Decorator that dedents docstrings with `inspect.getdoc` and adds
14
un-indented snippets from the global `snippets` dictionary. This function
15
uses ``%(name)s`` substitution rather than `str.format` substitution so
- that the `snippets` keys can be invalid variable names."""
16
+ that the `snippets` keys can be invalid variable names.
17
18
func.__doc__ = inspect.getdoc(func)
19
if func.__doc__:
20
func.__doc__ %= {key: value.strip() for key, value in snippets.items()}
0 commit comments