8000 Correct numpydoc returned tuples · matplotlib/matplotlib@9ffd68e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ffd68e

Browse files
committed
Correct numpydoc returned tuples
1 parent edceb29 commit 9ffd68e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/matplotlib/backends/registry.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,10 @@ def resolve_backend(self, backend):
334334
335335
Returns
336336
-------
337-
Tuple of backend (str) and GUI framework (str or None).
338-
A non-interactive backend returns None for its GUI framework rather than
339-
"headless".
337+
backend : str
338+
The backend name.
339+
framework : str or None
340+
The GUI framework, which will be None for a backend that is non-interactive.
340341
"""
341342
if isinstance(backend, str):
342343
backend = backend.lower()
@@ -387,9 +388,10 @@ def resolve_gui_or_backend(self, gui_or_backend):
387388
388389
Returns
389390
-------
390-
tuple of (str, str or None)
391-
A non-interactive backend returns None for its GUI framework rather than
392-
"headless".
391+
backend : str
392+
The backend name.
393+
framework : str or None
394+
The GUI framework, which will be None for a backend that is non-interactive.
393395
"""
394396
gui_or_backend = gui_or_backend.lower()
395397

0 commit comments

Comments
 (0)
0