MNT: Remove unused imports - #23554
Conversation
There are still unused imports in backends, but ones that I believe are required, like the FigureManagers etc. I guess one can mark the lines, which I am strongly in favour of instead of the file, but it will take some time... |
|
Perhaps you can remove F401 for all backends from |
|
New change where I started to use There is a minor risk for breakage. For example, it is in current main possible to import numpy as: This is no longer possible after this change. |
| from matplotlib.path import Path | ||
| from mpl_toolkits.axes_grid1 import mpl_axes | ||
| from .axisline_style import AxislineStyle | ||
| from .axisline_style import AxislineStyle # noqa |
There was a problem hiding this comment.
Maybe one should deprecate this? Not sure if someone is actually importing it from here?
eb69b80 to
0911175
Compare

PR Summary
Found some unused imports.
PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand runflake8 --docstring-convention=all).Documentation
doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).