Skip to content

Commit 8c69832

Browse files
committed
STY: run black on code base
1 parent 5e84b43 commit 8c69832

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mpl_gui/_manage_backend.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def select_gui_toolkit(newbackend=None):
5555
mapping = {
5656
"qt": "qtagg",
5757
"gtk3": "gtk3agg",
58-
'gtk4': 'gtk4agg',
58+
"gtk4": "gtk4agg",
5959
"wx": "wxagg",
6060
"tk": "tkagg",
6161
"macosx": "macosx",
@@ -89,15 +89,16 @@ def select_gui_toolkit(newbackend=None):
8989
# creating a "class" that inherits from backend_bases._Backend and whose
9090
# body is filled with the module's globals.
9191

92-
if newbackend.lower() == 'tkagg':
93-
backend_name = f'mpl_gui._patched_backends.{newbackend.lower()}'
92+
if newbackend.lower() == "tkagg":
93+
backend_name = f"mpl_gui._patched_backends.{newbackend.lower()}"
9494
else:
9595
backend_name = cbook._backend_module_name(newbackend)
9696

9797
mod = importlib.import_module(backend_name)
98-
if hasattr(mod, 'Backend'):
98+
if hasattr(mod, "Backend"):
9999
backend_mod = mod.Backend
100100
else:
101+
101102
class backend_mod(matplotlib.backend_bases._Backend):
102103
locals().update(vars())
103104

0 commit comments

Comments
 (0)