diff --git a/IPython/external/qt_for_kernel.py b/IPython/external/qt_for_kernel.py index 956b08c..f88b16b 100644 --- a/IPython/external/qt_for_kernel.py +++ b/IPython/external/qt_for_kernel.py @@ -104,7 +104,7 @@ def get_options(): return [loaded] mpl = sys.modules.get("matplotlib", None) - print(f"{mpl=}") # will be None of matplotlib has not yet been imported + print(f"{mpl=}") # will be None of matplotlib has not yet been imported if mpl is not None and tuple(mpl.__version__.split(".")) < ("1", "0", "2"): # 1.0.1 only supports PyQt4 v1 diff --git a/IPython/external/qt_loaders.py b/IPython/external/qt_loaders.py index b3fd6a7..827220e 100644 --- a/IPython/external/qt_loaders.py +++ b/IPython/external/qt_loaders.py @@ -394,6 +394,7 @@ def load_qt(api_options): ) ) + def enum_factory(QT_API, QtCore): """Construct an enum helper to account for PyQt5 <-> PyQt6 changes."""