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 353d8bf commit 0f26d51
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 @@ -540,7 +540,7 @@ def _squeeze_dims(dims: _Dims, shape: _Shape, axis: _AxisLike) -> _Dims:
>>> _squeeze_dims(("x", "y", "z"), (0, 2, 1), (0, 2))
('y',)
"""
sizes = dict(zip(dims, shape, strict=False))
sizes = dict(zip(dims, shape, strict=True))
for a in _normalize_axis_tuple(axis, len(dims)):
d = dims[a]
if sizes[d] < 2:
Expand Down

0 comments on commit 0f26d51

Please sign in to comment.