From 4f93f779e6e12d5ba7a13ca3a45554402f92235e Mon Sep 17 00:00:00 2001 From: Brock Date: Wed, 2 Aug 2023 09:12:39 -0700 Subject: [PATCH] mypy fixup --- pandas/tests/extension/test_arrow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 9ebd4df86bebc..7c4ea2d4d7b88 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -355,7 +355,9 @@ def check_accumulate(self, ser, op_name, skipna): tm.assert_series_equal(result, expected, check_dtype=False) def _supports_accumulation(self, ser: pd.Series, op_name: str) -> bool: - pa_type = ser.dtype.pyarrow_dtype + # error: Item "dtype[Any]" of "dtype[Any] | ExtensionDtype" has no + # attribute "pyarrow_dtype" + pa_type = ser.dtype.pyarrow_dtype # type: ignore[union-attr] if pa.types.is_string(pa_type) or pa.types.is_binary(pa_type): if op_name in ["cumsum", "cumprod"]: