8000
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 996c410 commit 6311891Copy full SHA for 6311891
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& 6A59 quot;, "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