Skip to content

Commit e8bfb64

Browse files
Unnecessary lambda expression (#2828)
1 parent 5a36e17 commit e8bfb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/testing/strategies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def orthogonal_indices(
305305
)
306306
| basic_indices(min_dims=1, shape=(size,), allow_ellipsis=False)
307307
.map(lambda x: (x,) if not isinstance(x, tuple) else x) # bare ints, slices
308-
.filter(lambda x: bool(x)) # skip empty tuple
308+
.filter(bool) # skip empty tuple
309309
)
310310
(idxr,) = val
311311
if isinstance(idxr, int):

0 commit comments

Comments
 (0)