8000 Linting/mypy fixes · matplotlib/matplotlib@4d3d1a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d3d1a0

Browse files
committed
Linting/mypy fixes
1 parent 7fdd46d commit 4d3d1a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def _safe_pyplot_import():
108108
from matplotlib.backends.registry import backend_registry
109109
backend = backend_registry.backend_for_gui_framework(current_framework)
110110
if backend is None:
111-
raise RuntimeError(f"No suitable backend for the current GUI framework {current_framework!r}")
111+
raise RuntimeError("No suitable backend for the current GUI framework "
112+
f"{current_framework!r}")
112113

113114
rcParams["backend"] = mpl.rcParamsOrig["backend"] = backend
114115
import matplotlib.pyplot as plt # Now this should succeed.

lib/matplotlib/rcsetup.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ interactive_bk: list[str]
88
non_interactive_bk: list[str]
99
all_backends: list[str]
1010

11+
def __dir__() -> list[str]: ...
12+
1113
_T = TypeVar("_T")
1214

1315
def _listify_validator(s: Callable[[Any], _T]) -> Callable[[Any], list[_T]]: ...

0 commit comments

Comments
 (0)
0