Skip to content

Commit 60fe242

Browse files
d-v-bdcherian
andauthored
Update src/zarr/testing/strategies.py
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
1 parent e663452 commit 60fe242

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/zarr/testing/strategies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ def orthogonal_indices(
405405
newshape[axis] = idxr.size
406406
npindexer.append(idxr.reshape(newshape))
407407

408-
return tuple(zindexer), np.broadcast_arrays(*npindexer)
408+
# casting the output of broadcast_arrays is needed for numpy < 2
409+
return tuple(zindexer), tuple(np.broadcast_arrays(*npindexer))
409410

410411

411412
def key_ranges(

0 commit comments

Comments
 (0)