ci: temporary suppress pandas mypy error in check_dateish

This commit is contained in:
Dima Gerasimov 2024-08-05 23:15:49 +01:00 committed by karlicoss
parent 2c63fe25c0
commit b615ba10b1

View file

@ -50,7 +50,7 @@ def check_dateish(s: SeriesT[S1]) -> Iterable[str]:
all_timestamps = s.apply(lambda x: isinstance(x, (pd.Timestamp, datetime))).all() all_timestamps = s.apply(lambda x: isinstance(x, (pd.Timestamp, datetime))).all()
if not all_timestamps: if not all_timestamps:
return # not sure why it would happen, but ok 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] examples = s[tzs.index]
# todo not so sure this warning is that useful... except for stuff without tz # todo not so sure this warning is that useful... except for stuff without tz
yield f''' yield f'''