Skip to content

Commit 995a5d5

Browse files
committed
fix mypy in test_array.py
1 parent b4c53a9 commit 995a5d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_array.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,4 +1463,6 @@ async def test_sharding_coordinate_selection() -> None:
14631463
shards=(2, 4, 4),
14641464
)
14651465
arr[:] = np.arange(2 * 3 * 4).reshape((2, 3, 4))
1466-
assert (arr[1, [0, 1]] == np.array([[12, 13, 14, 15], [16, 17, 18, 19]])).all() # type: ignore[index]
1466+
result = arr[1, [0, 1]]
1467+
assert isinstance(result, NDArrayLike)
1468+
assert (result == np.array([[12, 13, 14, 15], [16, 17, 18, 19]])).all() # type: ignore[index]

0 commit comments

Comments
 (0)