diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-07-09 13:58:30 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-07-09 13:58:30 -0600 |
commit | 60add4a3ebabcc1e8dae07c4c11a65f56607f708 (patch) | |
tree | 8d95ee459fcd5f48a0425f884be499bf023eb346 | |
parent | 74478e2d943f4d61917d4d9122a042214eed94fd (diff) | |
download | numpy-60add4a3ebabcc1e8dae07c4c11a65f56607f708.tar.gz |
Small code cleanup
-rw-r--r-- | numpy/_array_api/_array_object.py | 2 |
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: """ |