From e48e8d80a97ebdf3309d634ffe5c9c10a2bc3392 2023-03-01 15:59:28 From: Emilio Graff <1@emil.io> Date: 2023-03-01 15:59:28 Subject: [PATCH] Formatting --- diff --git a/IPython/terminal/pt_inputhooks/__init__.py b/IPython/terminal/pt_inputhooks/__init__.py index 8345ebe..6c752b1 100644 --- a/IPython/terminal/pt_inputhooks/__init__.py +++ b/IPython/terminal/pt_inputhooks/__init__.py @@ -114,6 +114,7 @@ def set_qt_api(gui): return None # Import it now so we can figure out which version it is. from IPython.external.qt_for_kernel import QT_API + return qt_env2gui[QT_API] diff --git a/IPython/terminal/tests/test_pt_inputhooks.py b/IPython/terminal/tests/test_pt_inputhooks.py index 955db61..3f788c7 100644 --- a/IPython/terminal/tests/test_pt_inputhooks.py +++ b/IPython/terminal/tests/test_pt_inputhooks.py @@ -34,7 +34,7 @@ _get_qt_vers() ) def test_inputhook_qt(): # Choose the "best" Qt version. - gui_ret, _ = get_inputhook_name_and_func('qt') + gui_ret, _ = get_inputhook_name_and_func("qt") assert gui_ret != "qt" # you get back the specific version that was loaded. assert gui_ret in guis_avail