From e8bfb6484aeb543c21b9b0f6de2e0f0a034fc5d7 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 17 Feb 2025 17:07:51 +0100 Subject: [PATCH] Unnecessary lambda expression (#2828) --- 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):