File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ def _safe_pyplot_import():
108
108
from matplotlib .backends .registry import backend_registry
109
109
backend = backend_registry .backend_for_gui_framework (current_framework )
110
110
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} " )
112
113
113
114
rcParams ["backend" ] = mpl .rcParamsOrig ["backend" ] = backend
114
115
import matplotlib .pyplot as plt # Now this should succeed.
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ interactive_bk: list[str]
8
8
non_interactive_bk : list [str ]
9
9
all_backends : list [str ]
10
10
11
+ def __dir__ () -> list [str ]: ...
12
+
11
13
_T = TypeVar ("_T" )
12
14
13
15
def _listify_validator (s : Callable [[Any ], _T ]) -> Callable [[Any ], list [_T ]]: ...
You can’t perform that action at this time.