Skip to content

Commit 60add4a

Browse files
committed
Small code cleanup
1 parent 74478e2 commit 60add4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_array_api/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def __getitem__(self: Array, key: Union[int, slice, ellipsis, Tuple[Union[int, s
357357
# docstring of _validate_index
358358
key = self._validate_index(key, self.shape)
359359
res = self._array.__getitem__(key)
360-
return self.__class__._new(res)
360+
return self._new(res)
361361

362362
def __gt__(self: Array, other: Union[int, float, Array], /) -> Array:
363363
"""

0 commit comments

Comments
 (0)