From 35ef3e1f0f779b5bf7926c0f2f9805c9f2f91880 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Mon, 5 Aug 2024 23:15:49 +0100 Subject: [PATCH] ci: temporary suppress pandas mypy error in check_dateish --- my/core/pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/core/pandas.py b/my/core/pandas.py index 1b7a644b..621682f8 100644 --- a/my/core/pandas.py +++ b/my/core/pandas.py @@ -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'''