Skip to content

Commit 6fae9cc

Browse files
committed
mypy fixup
1 parent df7376e commit 6fae9cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/datetimes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,12 @@ def date_range(
11021102
creso = abbrev_to_npy_unit(unit)
11031103
if isinstance(freq, Tick):
11041104
if freq._creso > creso:
1105-
unit = freq.base.freqstr
1105+
unit = freq.base.freqstr # type: ignore[assignment]
11061106
elif hasattr(freq, "offset") and freq.offset is not None:
11071107
# e.g. BDay with an offset
11081108
td = Timedelta(freq.offset)
11091109
if abbrev_to_npy_unit(td.unit) > creso:
1110-
unit = td.unit
1110+
unit = td.unit # type: ignore[assignment]
11111111
elif type(freq) is DateOffset and getattr(freq, "nanoseconds", 0) != 0:
11121112
# e.g. test_freq_dateoffset_with_relateivedelta_nanos
11131113
unit = "ns"

0 commit comments

Comments
 (0)