From a615384e9a9a3d9144fb6fae7e087897eaf8f710 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:36:05 +0100 Subject: [PATCH] Unnecessary lambda expression --- src/zarr/testing/strategies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index 8847b49020..0e25e44592 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -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):