Skip to content

Commit 8b0660a

Browse files
Array(Protocol): rename __getitem__ parameter
1 parent 1013ecb commit 8b0660a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arraycontext/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def dtype(self) -> np.dtype[Any]:
217217
# If you'd like to see how, try changing the Any to
218218
# AxisIndex = slice | int | "Array"
219219
# Index = AxisIndex |tuple[AxisIndex]
220-
def __getitem__(self, index: Any) -> Array:
220+
def __getitem__(self, key: Any) -> Array:
221221
...
222222

223223
# some basic arithmetic that's supposed to work

0 commit comments

Comments
 (0)