Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc9ca79f

Browse files
committed
Linting/mypy fixes
1 parenta8ab303 commitc9ca79f

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
frommatplotlib.backends.registryimportbackend_registry
109109
backend=backend_registry.backend_for_gui_framework(current_framework)
110110
ifbackendisNone:
111-
raiseRuntimeError(f"No suitable backend for the current GUI framework{current_framework!r}")
111+
raiseRuntimeError("No suitable backend for the current GUI framework "
112+
f"{current_framework!r}")
112113

113114
rcParams["backend"]=mpl.rcParamsOrig["backend"]=backend
114115
importmatplotlib.pyplotasplt# 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)

[8]ページ先頭

©2009-2025 Movatter.jp