Skip to content

Commit 38c8b4f

Browse files
committed
fixup mypy
1 parent d4e4d2b commit 38c8b4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/zarr/testing/strategies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,9 @@ def basic_indices(
490490
allow_newaxis=allow_newaxis,
491491
allow_ellipsis=allow_ellipsis,
492492
).filter(
493-
# Note: mypy behavior varies by version - some versions see redundant-expr here
494493
lambda idxr: not (
495494
is_negative_slice(idxr)
496-
or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) # type: ignore[redundant-expr]
495+
or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr))
497496
)
498497
)
499498
if math.prod(shape) >= 3:

0 commit comments

Comments
 (0)