diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index eabbff34bd7c8..16dfa7e051d0d 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -666,11 +666,12 @@ def __array__( """Correctly construct numpy arrays when passed to `np.asarray()`.""" if copy is False: warnings.warn( - "Starting with NumPy 2.0, the behavior of the 'copy' keyword has changed " - "and passing 'copy=False' raises an error when returning a zero-copy NumPy array " - "is not possible. pandas will follow this behavior starting with " - "pandas 3.0.\nThis conversion to NumPy requires a copy, but " - "'copy=False' was passed. Consider using 'np.asarray(..)' instead.", + "Starting with NumPy 2.0, the behavior of the 'copy' keyword has " + "changed and passing 'copy=False' raises an error when returning " + "a zero-copy NumPy array is not possible. pandas will follow " + "this behavior starting with pandas 3.0.\nThis conversion to " + "NumPy requires a copy, but 'copy=False' was passed. Consider " + "using 'np.asarray(..)' instead.", FutureWarning, stacklevel=find_stack_level(), )