|
45 | 45 | import importlib |
46 | 46 | import inspect |
47 | 47 | import logging |
48 | | -import re |
49 | 48 | import sys |
50 | 49 | import threading |
51 | 50 | import time |
52 | | -from typing import cast, overload |
| 51 | +from typing import TYPE_CHECKING, cast, overload |
53 | 52 |
|
54 | | -from cycler import cycler |
| 53 | +from cycler import cycler # noqa: F401 |
55 | 54 | import matplotlib |
56 | 55 | import matplotlib.colorbar |
57 | 56 | import matplotlib.image |
58 | 57 | from matplotlib import _api |
59 | | -from matplotlib import ( # Re-exported for typing. |
| 58 | +from matplotlib import ( # noqa: F401 Re-exported for typing. |
60 | 59 | cm as cm, get_backend as get_backend, rcParams as rcParams, style as style) |
61 | | -from matplotlib import _pylab_helpers, interactive |
| 60 | +from matplotlib import _pylab_helpers |
| 61 | +from matplotlib import interactive # noqa: F401 |
62 | 62 | from matplotlib import cbook |
63 | 63 | from matplotlib import _docstring |
64 | 64 | from matplotlib.backend_bases import ( |
|
67 | 67 | from matplotlib.gridspec import GridSpec, SubplotSpec |
68 | 68 | from matplotlib import rcsetup, rcParamsDefault, rcParamsOrig |
69 | 69 | from matplotlib.artist import Artist |
70 | | -from matplotlib.axes import Axes, Subplot # type: ignore |
| 70 | +from matplotlib.axes import Axes |
| 71 | +from matplotlib.axes import Subplot # noqa: F401 |
71 | 72 | from matplotlib.projections import PolarAxes # type: ignore |
72 | 73 | from matplotlib import mlab # for detrend_none, window_hanning |
73 | | -from matplotlib.scale import get_scale_names |
| 74 | +from matplotlib.scale import get_scale_names # noqa: F401 |
74 | 75 |
|
75 | 76 | from matplotlib.cm import _colormaps |
76 | | -from matplotlib.cm import register_cmap # type: ignore |
| 77 | +from matplotlib.cm import register_cmap # type: ignore # noqa: F401 |
77 | 78 | from matplotlib.colors import _color_sequences |
78 | 79 |
|
79 | 80 | import numpy as np |
80 | 81 |
|
81 | | -from typing import TYPE_CHECKING, cast |
82 | | - |
83 | 82 | if TYPE_CHECKING: |
84 | 83 | from collections.abc import Callable, Hashable, Iterable, Sequence |
85 | 84 | import datetime |
|
131 | 130 | from matplotlib.colors import Normalize |
132 | 131 | from matplotlib.lines import Line2D, AxLine |
133 | 132 | from matplotlib.text import Text, Annotation |
134 | | -from matplotlib.patches import Polygon, Rectangle, Circle, Arrow |
135 | | -from matplotlib.widgets import Button, Slider, Widget |
| 133 | +from matplotlib.patches import Arrow, Circle, Rectangle # noqa: F401 |
| 134 | +from matplotlib.patches import Polygon |
| 135 | +from matplotlib.widgets import Button, Slider, Widget # noqa: F401 |
136 | 136 |
|
137 | | -from .ticker import ( |
| 137 | +from .ticker import ( # noqa: F401 |
138 | 138 | TickHelper, Formatter, FixedFormatter, NullFormatter, FuncFormatter, |
139 | 139 | FormatStrFormatter, ScalarFormatter, LogFormatter, LogFormatterExponent, |
140 | 140 | LogFormatterMathtext, Locator, IndexLocator, FixedLocator, NullLocator, |
|
0 commit comments