Skip to content

Commit

Permalink
ci: temporary suppress pandas mypy error in check_dateish
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Aug 5, 2024
1 parent 31381ae commit 35ef3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my/core/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def check_dateish(s: SeriesT[S1]) -> Iterable[str]:
all_timestamps = s.apply(lambda x: isinstance(x, (pd.Timestamp, datetime))).all()
if not all_timestamps:
return # not sure why it would happen, but ok
tzs = s.map(lambda x: x.tzinfo).drop_duplicates()
tzs = s.map(lambda x: x.tzinfo).drop_duplicates() # type: ignore[union-attr, var-annotated, arg-type, return-value, unused-ignore]
examples = s[tzs.index]
# todo not so sure this warning is that useful... except for stuff without tz
yield f'''
Expand Down

0 comments on commit 35ef3e1

Please sign in to comment.