Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c67a08

Browse filesBrowse files
committed
DOC: Fix syntax for ToolBase.image docstring
1 parent 850bf04 commit 4c67a08
Copy full SHA for 4c67a08

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎lib/matplotlib/backend_tools.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_tools.py
+6-6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.