Skip to content

Commit d2fa874

Browse files
committed
mypy fixup
1 parent eba73e8 commit d2fa874

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tseries/frequencies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _get_offset(name: str) -> DateOffset:
219219
klass = prefix_mapping[split[0]]
220220
# handles case where there's no suffix (and will TypeError if too
221221
# many '-')
222-
offset = klass._from_name(*split[1:]) # type: ignore
222+
offset = klass._from_name(*split[1:])
223223
except (ValueError, TypeError, KeyError) as err:
224224
# bad prefix or suffix
225225
raise ValueError(libfreqs.INVALID_FREQ_ERR_MSG.format(name)) from err

pandas/tseries/offsets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ def is_on_offset(self, dt: datetime) -> bool:
21712171
CDay = CustomBusinessDay
21722172

21732173
prefix_mapping = {
2174-
offset._prefix: offset # type: ignore
2174+
offset._prefix: offset
21752175
for offset in [
21762176
YearBegin, # 'AS'
21772177
YearEnd, # 'A'

0 commit comments

Comments
 (0)