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"]: