We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a39b64a commit 0161c61Copy full SHA for 0161c61
src/zarr/testing/strategies.py
@@ -356,7 +356,12 @@ def basic_indices(
356
allow_newaxis=allow_newaxis,
357
allow_ellipsis=allow_ellipsis,
358
).filter(
359
- lambda idxr: (not (is_negative_slice(idxr) or any(is_negative_slice(idx) for idx in idxr)))
+ lambda idxr: (
360
+ not (
361
+ is_negative_slice(idxr)
362
+ or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr))
363
+ )
364
365
)
366
if math.prod(shape) >= 3:
367
strategy = end_slices(shape=shape) | strategy
0 commit comments