summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_array_object.py
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-02-26 17:37:27 -0700
committerAaron Meurer <asmeurer@gmail.com>2021-02-26 17:37:27 -0700
commit6e36bfce6fae5ce1a0aa2a71eee3d953366ba439 (patch)
treec23cacad4ee68e749bd4b38ff06bcd2984a33e08 /numpy/_array_api/_array_object.py
parent3b9c910ab1687f5af6c2d20fd737704fe39706e2 (diff)
downloadnumpy-6e36bfce6fae5ce1a0aa2a71eee3d953366ba439.tar.gz
Use a different repr form for array_api.ndarray than array
Diffstat (limited to 'numpy/_array_api/_array_object.py')
-rw-r--r--numpy/_array_api/_array_object.py4
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.