8000 Merge pull request #27928 from QuLogic/fix-tools-doc · matplotlib/matplotlib@1c4c9af · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c4c9af

Browse files
authored
Merge pull request #27928 from QuLogic/fix-tools-doc
DOC: Fix syntax for ToolBase.image docstring
2 parents ebbef87 + 4c67a08 commit 1c4c9af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ class ToolBase:
9999
"""
100100
Icon filename.
101101
102-
``str | None``: Filename of the Toolbar icon; either absolute, or
103-
relative to the directory containing the Python source file where the
104-
``Tool.image``class attribute is defined (in the latter case, this cannot
105-
be defined as an instance attribute). In either case, the extension is
106-
optional; leaving it off lets individual backends select the icon format
107-
they prefer. If None, the *name* is used as a label in the toolbar button.
102+
``str | None``: Filename of the Toolbar icon; either absolute, or relative to the
103+
directory containing the Python source file where the ``Tool.image`` class attribute
104+
is defined (in the latter case, this cannot be defined as an instance attribute).
105+
In either case, the extension is optional; leaving it off lets individual backends
106+
select the icon format they prefer. If None, the *name* is used as a label in the
107+
toolbar button.
108108
"""
109109

110110
def __init__(self, toolmanager, name):

0 commit comments

Comments
 (0)
0