Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/matplotlib/__pycache__/docstring.cpython-37.pyc

75 lines
4.5 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
U<>]<5D><00>@s<>ddlZddlmZGdd<04>de<03>Ze<02>d<05>Gdd<07>de<03><03>Zejddd <09>d
d <0B><00>Zd d <0A>Ze<04>Z dd<0F>Z
ejddd <09>dd<12><00>Z dS)<13>N)<01>cbookc@s4eZdZdZdd<03>Zdd<05>Zdd<07>Zedd <09><00>Zd
S) <0B> SubstitutionaG
A decorator that performs %-substitution on an object's docstring.
This decorator should be robust even if ``obj.__doc__`` is None (for
example, if -OO was passed to the interpreter).
Usage: construct a docstring.Substitution with a sequence or dictionary
suitable for performing substitution; then decorate a suitable function
with the constructed object, e.g.::
sub_author_name = Substitution(author='Jason')
@sub_author_name
def some_function(x):
"%(author)s wrote this function"
# note that some_function.__doc__ is now "Jason wrote this function"
One can also use positional arguments::
sub_first_last_names = Substitution('Edgar Allen', 'Poe')
@sub_first_last_names
def some_function(x):
"%s %s wrote the Raven"
cOs|r|rtd<01><01>|p||_dS)Nz+Only positional or keyword args are allowed)<02> TypeError<6F>params)<03>self<6C>args<67>kwargs<67>r <00></tmp/pip-install-i8dhxrtk/matplotlib/matplotlib/docstring.py<70>__init__!szSubstitution.__init__cCs|jr|j|j;_|S)N)<02>__doc__r)r<00>funcr r r
<00>__call__&szSubstitution.__call__cOs|jj||<02>dS)zW
Update ``self.params`` (which must be a dict) with the supplied args.
N)r<00>update)rrrr r r
r+szSubstitution.updatecCs|<00>}||_|S)a(
In the case where the params is a mutable sequence (list or
dictionary) and it may change before this class is called, one may
explicitly use a reference to the params rather than using *args or
**kwargs which will copy the values and not reference them.
)r)<03>clsr<00>resultr r r
<00> from_params1szSubstitution.from_paramsN) <09>__name__<5F>
__module__<EFBFBD> __qualname__r r rr<00> classmethodrr r r r
rs
rz3.1c@s"eZdZdZddd<04>Zdd<06>ZdS) <09>Appenderaf
A function decorator that will append an addendum to the docstring
of the target function.
This decorator should be robust even if func.__doc__ is None
(for example, if -OO was passed to the interpreter).
Usage: construct a docstring.Appender with a string to be joined to
the original docstring. An optional 'join' parameter may be supplied
which will be used to join the docstring and addendum. e.g.
add_copyright = Appender("Copyright (c) 2009", join='
')
@add_copyright
def my_dog(has='fleas'):
"This docstring will have a copyright below"
pass
<20>cCs||_||_dS)N)<02>addendum<75>join)rrrr r r
r RszAppender.__init__cCs$|j|jg}|jo|j<02>|<02>|_|S)N)r rr)rr Zdocitemsr r r
rVs zAppender.__call__N)r)rrrr r rr r r r
r>s
rzinspect.getdoc())<01> alternativecCs|jot<01>|j<00>|_|S)zDedent a docstring (if present))r r<00>dedent)r r r r
r\srcs<00>fdd<02>}|S)z:Copy a docstring from another source function (if present)cs<00>jr<0E>j|_|S)N)r )<01>target)<01>sourcer r
<00>do_copyeszcopy.<locals>.do_copyr )rrr )rr
<00>copycs r cCst<00>|<00>|_t|<00>S)z@Dedent *func*'s docstring, then interpolate it with ``interpd``.)<04>inspect<63>getdocr <00>interpd)r r r r
<00>dedent_interpdqs r$z#docstring.copy() and cbook.dedent()cs <00>fdd<02>S)zOA decorator that will copy the docstring from the source and
then dedent itcstt<01><00>|<00><01>S)N)rr )r)rr r
<00><lambda><00>zcopy_dedent.<locals>.<lambda>r )rr )rr
<00> copy_dedentwsr') r!Z
matplotlibr<00>objectr<00>
deprecatedrrr r#r$r'r r r r
<00><module>s 8