Closed
Description
Bug report
Bug summary
See title.
Code for reproduction
In a clean venv with matplotlib (HEAD) installed and no qt binding installed, import matplotlib.backends.qt_compat
.
Actual outcome
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/antony/src/extern/matplotlib/lib/matplotlib/backends/qt_compat.py", line 197, in <module>
QtCore.Signal = QtCore.pyqtSignal
NameError: name 'QtCore' is not defined
Expected outcome
An ImportError.
Matplotlib version
- Operating system:
- Matplotlib version: master
- Matplotlib backend (
print(matplotlib.get_backend())
): - Python version:
- Jupyter version (if applicable):
- Other libraries:
Introduced by #11500 (I think).
#9993 fixes the issue and is ready to go.