We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6e938 commit 8b3b315Copy full SHA for 8b3b315
lib/matplotlib/backends/qt_compat.py
@@ -57,7 +57,12 @@
57
# requested backend actually matches). Use dict.__getitem__ to avoid
58
# triggering backend resolution (which can result in a partially but
59
# incompletely imported backend_qt5).
60
-elif dict.__getitem__(mpl.rcParams, "backend") in ["Qt5Agg", "Qt5Cairo"]:
+elif (
61
+ isinstance(dict.__getitem__(mpl.rcParams, "backend"), str) and
62
+ dict.__getitem__(mpl.rcParams, "backend").lower() in [
63
+ "qt5agg", "qt5cairo"
64
+ ]
65
+):
66
if QT_API_ENV in ["pyqt5", "pyside2"]:
67
QT_API = _ETS[QT_API_ENV]
68
else:
0 commit comments