diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index ee173c6892743..d9f6bb8454d93 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -1048,14 +1048,14 @@ def shares_memory(left, right) -> bool: if ( isinstance(left, ExtensionArray) and is_string_dtype(left.dtype) - and left.dtype.storage in ("pyarrow", "pyarrow_numpy") + and left.dtype.storage in ("pyarrow", "pyarrow_numpy") # type: ignore[attr-defined] # noqa: E501 ): # https://github.com/pandas-dev/pandas/pull/43930#discussion_r736862669 left = cast("ArrowExtensionArray", left) if ( isinstance(right, ExtensionArray) and is_string_dtype(right.dtype) - and right.dtype.storage in ("pyarrow", "pyarrow_numpy") + and right.dtype.storage in ("pyarrow", "pyarrow_numpy") # type: ignore[attr-defined] # noqa: E501 ): right = cast("ArrowExtensionArray", right) left_pa_data = left._pa_array