diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py index 6932a43c8d552..5cd66d8a874c7 100644 --- a/pandas/tests/extension/base/ops.py +++ b/pandas/tests/extension/base/ops.py @@ -40,7 +40,11 @@ def _get_expected_exception( if using_pyarrow_string_dtype() and result is not None: import pyarrow as pa - result = result, pa.lib.ArrowNotImplementedError, NotImplementedError + result = ( # type: ignore[assignment] + result, + pa.lib.ArrowNotImplementedError, + NotImplementedError, + ) return result def _cast_pointwise_result(self, op_name: str, obj, other, pointwise_result):