Skip to content

Commit 4be98a3

Browse files
committed
adjust type ignore in testing/strategies.py, mypy happy
1 parent f4b2bcc commit 4be98a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zarr/testing/strategies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def basic_indices(
352352
allow_ellipsis: bool = True,
353353
) -> Any:
354354
"""Basic indices without unsupported negative slices."""
355-
strategy = npst.basic_indices(
355+
strategy = npst.basic_indices( # type: ignore[call-overload]
356356
shape=shape,
357357
min_dims=min_dims,
358358
max_dims=max_dims,
@@ -362,7 +362,7 @@ def basic_indices(
362362
lambda idxr: (
363363
not (
364364
is_negative_slice(idxr)
365-
or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) # type: ignore[redundant-expr]
365+
or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr))
366366
)
367367
)
368368
)

0 commit comments

Comments
 (0)