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 8b4c2a7 commit 146872dCopy full SHA for 146872d
lib/matplotlib/backends/qt_compat.py
@@ -67,9 +67,10 @@
67
QT_API = _ETS[QT_API_ENV]
68
except KeyError as err:
69
raise RuntimeError(
70
- "The environment variable QT_API has the unrecognized value {!r};"
71
- "valid values are {}".format(
72
- QT_API, ", ".join(map(repr, _ETS)))) from None
+ "The environment variable QT_API has the unrecognized value "
+ f"{QT_API_ENV!r}; "
+ f"valid values are {set(k for k in _ETS if k is not None)}"
73
+ ) from None
74
75
76
def _setup_pyqt5plus():
0 commit comments