We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7376e commit 6fae9ccCopy full SHA for 6fae9cc
pandas/core/indexes/datetimes.py
@@ -1102,12 +1102,12 @@ def date_range(
1102
creso = abbrev_to_npy_unit(unit)
1103
if isinstance(freq, Tick):
1104
if freq._creso > creso:
1105
- unit = freq.base.freqstr
+ unit = freq.base.freqstr # type: ignore[assignment]
1106
elif hasattr(freq, "offset") and freq.offset is not None:
1107
# e.g. BDay with an offset
1108
td = Timedelta(freq.offset)
1109
if abbrev_to_npy_unit(td.unit) > creso:
1110
- unit = td.unit
+ unit = td.unit # type: ignore[assignment]
1111
elif type(freq) is DateOffset and getattr(freq, "nanoseconds", 0) != 0:
1112
# e.g. test_freq_dateoffset_with_relateivedelta_nanos
1113
unit = "ns"
0 commit comments