Skip to content

Commit

Permalink
Update _utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Sep 25, 2024
1 parent 2cec2c7 commit c5a3054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/namedarray/_array_api/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def _reduce_dims(dims: _Dims, *, axis: _AxisLike | None, keepdims: bool) -> _Dim

k: _IndexKeys = (slice(None),) * ndim
key = list(k)
for i, v in enumerate(_axis):
for v in _axis:
key[v] = 0

return _dims_from_tuple_indexing(dims, tuple(key))
Expand Down

0 comments on commit c5a3054

Please sign in to comment.