From 4989b4447b6e627b9cced8431caaaab7bf09771c Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:14:17 +0100 Subject: [PATCH] Fix typing --- pandas/tests/extension/base/ops.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):