Skip to content

Commit 3017a99

Browse files
committed
fix for numpy 1.25
1 parent b2be002 commit 3017a99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/zarr/testing/strategies.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,9 @@ def orthogonal_indices(
220220
newshape = [1] * ndim
221221
newshape[axis] = idxr.size
222222
npindexer.append(idxr.reshape(newshape))
223-
from hypothesis import note
224223

225-
note(val)
226-
return tuple(zindexer), np.broadcast_arrays(*npindexer)
224+
# casting the output of broadcast_arrays is needed for numpy 1.25
225+
return tuple(zindexer), tuple(np.broadcast_arrays(*npindexer))
227226

228227

229228
def key_ranges(

0 commit comments

Comments
 (0)