Skip to content

Commit 3d190aa

Browse files
committed
frameorseriesunion
1 parent cfd51c1 commit 3d190aa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/plotting/_matplotlib/timeseries.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# TODO: Use the fact that axis can have units to simplify the process
22

33
import functools
4-
from typing import TYPE_CHECKING, Optional
4+
from typing import Optional
55

66
import numpy as np
77

88
from pandas._libs.tslibs.frequencies import FreqGroup, base_and_stride, get_freq_code
99
from pandas._libs.tslibs.period import Period
10+
from pandas._typing import FrameOrSeriesUnion
1011

1112
from pandas.core.dtypes.generic import (
1213
ABCDatetimeIndex,
@@ -24,10 +25,6 @@
2425
from pandas.tseries.frequencies import is_subperiod, is_superperiod
2526
from pandas.tseries.offsets import DateOffset
2627

27-
if TYPE_CHECKING:
28-
from pandas._typing import FrameOrSeries # noqa: F401
29-
30-
3128
# ---------------------------------------------------------------------
3229
# Plotting functions and monkey patches
3330

@@ -192,7 +189,7 @@ def _get_freq(ax, series):
192189
return freq, ax_freq
193190

194191

195-
def _use_dynamic_x(ax, data: "FrameOrSeries") -> bool:
192+
def _use_dynamic_x(ax, data: "FrameOrSeriesUnion") -> bool:
196193

197194
freq = _get_index_freq(data)
198195
ax_freq = _get_ax_freq(ax)

0 commit comments

Comments
 (0)