diff options
Diffstat (limited to 'numpy/_array_api')
-rw-r--r-- | numpy/_array_api/_array_object.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/_array_api/_array_object.py b/numpy/_array_api/_array_object.py index 09f5e5710..99e6147f5 100644 --- a/numpy/_array_api/_array_object.py +++ b/numpy/_array_api/_array_object.py @@ -47,13 +47,13 @@ class ndarray: """ Performs the operation __str__. """ - return x._array.__str__() + return x._array.__str__().replace('array', 'ndarray') def __repr__(x: array, /) -> str: """ Performs the operation __repr__. """ - return x._array.__repr__() + return x._array.__repr__().replace('array', 'ndarray') # Everything below this is required by the spec. |