Skip to content

Commit

Permalink
Unnecessary lambda expression
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Feb 15, 2025
1 parent 5a36e17 commit a615384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zarr/testing/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def orthogonal_indices(
)
| basic_indices(min_dims=1, shape=(size,), allow_ellipsis=False)
.map(lambda x: (x,) if not isinstance(x, tuple) else x) # bare ints, slices
.filter(lambda x: bool(x)) # skip empty tuple
.filter(bool) # skip empty tuple
)
(idxr,) = val
if isinstance(idxr, int):
Expand Down

0 comments on commit a615384

Please sign in to comment.