File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
pandas/plotting/_matplotlib Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ from typing import TYPE_CHECKING , Dict , Type
2
+
1
3
from pandas .plotting ._matplotlib .boxplot import (
2
4
BoxPlot ,
3
5
boxplot ,
26
28
)
27
29
from pandas .plotting ._matplotlib .tools import table
28
30
29
- PLOT_CLASSES = {
31
+ if TYPE_CHECKING :
32
+ from pandas .plotting ._matplotlib .core import MPLPlot # noqa: F401
33
+
34
+ PLOT_CLASSES : Dict [str , Type ["MPLPlot" ]] = {
30
35
"line" : LinePlot ,
31
36
"bar" : BarPlot ,
32
37
"barh" : BarhPlot ,
Original file line number Diff line number Diff line change @@ -331,9 +331,6 @@ check_untyped_defs=False
331
331
[mypy-pandas.plotting._matplotlib.misc]
332
332
check_untyped_defs =False
333
333
334
- [mypy-pandas.plotting._matplotlib.timeseries]
335
- check_untyped_defs =False
336
-
337
334
[mypy-pandas.tseries.holiday]
338
335
check_untyped_defs =False
339
336
You can’t perform that action at this time.
0 commit comments