Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 25, 2024
1 parent 4ef9e1c commit 353d8bf
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))
sizes = dict(zip(dims, shape, strict=False))
for a in _normalize_axis_tuple(axis, len(dims)):
d = dims[a]
if sizes[d] < 2:
Expand Down

0 comments on commit 353d8bf

Please sign in to comment.