summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_array_object.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_array_api/_array_object.py')
-rw-r--r--numpy/_array_api/_array_object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_array_object.py b/numpy/_array_api/_array_object.py
index 43d8a8961..404a09654 100644
--- a/numpy/_array_api/_array_object.py
+++ b/numpy/_array_api/_array_object.py
@@ -357,7 +357,7 @@ class Array:
# docstring of _validate_index
key = self._validate_index(key, self.shape)
res = self._array.__getitem__(key)
- return self.__class__._new(res)
+ return self._new(res)
def __gt__(self: Array, other: Union[int, float, Array], /) -> Array:
"""