Skip to content

Commit 4449349

Browse files
committed
fix typos
1 parent b825ab3 commit 4449349

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

array_api_strict/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def __getitem__(
733733
np_key = tuple(
734734
subkey._array if isinstance(subkey, Array) else subkey for subkey in key
735735
)
736-
res = self._array.__getitem__(key)
736+
res = self._array.__getitem__(np_key)
737737
return self._new(res, device=self.device)
738738

739739
def __gt__(self, other: Array | int | float, /) -> Array:

array_api_strict/tests/test_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_validate_index():
102102

103103

104104
@pytest.mark.parametrize("device", [None, "CPU_DEVICE", "device1", "device2"])
105-
def test_indexing_arrays():
105+
def test_indexing_arrays(device):
106106
# indexing with 1D integer arrays and mixes of integers and 1D integer are allowed
107107
device = None if device is None else Device(device)
108108

0 commit comments

Comments
 (0)