Skip to content

Commit 052fb6e

Browse files
committed
mypy fixup
1 parent cbd7a91 commit 052fb6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tseries/frequencies.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ def is_on_offset(self, dt: datetime) -> bool:
21402140
CDay = CustomBusinessDay
21412141

21422142
prefix_mapping = {
2143-
offset._prefix: offset # type: ignore
2143+
offset._prefix: offset
21442144
for offset in [
21452145
YearBegin, # 'AS'
21462146
YearEnd, # 'A'

0 commit comments

Comments
 (0)