File tree 1 file changed +3
-6
lines changed
pandas/plotting/_matplotlib
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
# TODO: Use the fact that axis can have units to simplify the process
2
2
3
3
import functools
4
- from typing import TYPE_CHECKING , Optional
4
+ from typing import Optional
5
5
6
6
import numpy as np
7
7
8
8
from pandas ._libs .tslibs .frequencies import FreqGroup , base_and_stride , get_freq_code
9
9
from pandas ._libs .tslibs .period import Period
10
+ from pandas ._typing import FrameOrSeriesUnion
10
11
11
12
from pandas .core .dtypes .generic import (
12
13
ABCDatetimeIndex ,
24
25
from pandas .tseries .frequencies import is_subperiod , is_superperiod
25
26
from pandas .tseries .offsets import DateOffset
26
27
27
- if TYPE_CHECKING :
28
- from pandas ._typing import FrameOrSeries # noqa: F401
29
-
30
-
31
28
# ---------------------------------------------------------------------
32
29
# Plotting functions and monkey patches
33
30
@@ -192,7 +189,7 @@ def _get_freq(ax, series):
192
189
return freq , ax_freq
193
190
194
191
195
- def _use_dynamic_x (ax , data : "FrameOrSeries " ) -> bool :
192
+ def _use_dynamic_x (ax , data : "FrameOrSeriesUnion " ) -> bool :
196
193
197
194
freq = _get_index_freq (data )
198
195
ax_freq = _get_ax_freq (ax )
You can’t perform that action at this time.
0 commit comments