Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60aa0f9

Browse files
authored
Merge pull request #15812 from timhoffm/doc-optional-default
Cleanup defaults in docstrings
2 parents 032a193 + 06bb1b2 commit 60aa0f9

File tree

6 files changed

+240
-242
lines changed

6 files changed

+240
-242
lines changed

lib/matplotlib/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,11 +1224,11 @@ def use(backend, warn=False, force=True):
12241224
12251225
or a string of the form: ``module://my.module.name``.
12261226
1227-
warn : bool, optional, default: False
1227+
warn : bool, default: False
12281228
If True and not *force*, emit a warning if a failure-to-switch
12291229
`ImportError` has been suppressed. This parameter is deprecated.
12301230
1231-
force : bool, optional, default: True
1231+
force : bool, default: True
12321232
If True (the default), raise an `ImportError` if the backend cannot be
12331233
set up (either because it fails to import, or because an incompatible
12341234
GUI interactive framework is already running); if False, ignore the
@@ -1477,10 +1477,10 @@ def func(ax, *args, **kwargs): ...
14771477
14781478
Parameters
14791479
----------
1480-
replace_names : list of str or None, optional, default: None
1480+
replace_names : list of str or None, default: None
14811481
The list of parameter names for which lookup into *data* should be
14821482
attempted. If None, replacement is attempted for all arguments.
1483-
label_namer : str, optional, default: None
1483+
label_namer : str, default: None
14841484
If set e.g. to "namer" (which must be a kwarg in the function's
14851485
signature -- not as ``**kwargs``), if the *namer* argument passed in is
14861486
a (string) key of *data* and no *label* kwarg is passed, then use the

0 commit comments

Comments
 (0)