Skip to content

Commit

Permalink
fix mypy in test_array.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Feb 15, 2025
1 parent b4c53a9 commit 995a5d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,4 +1463,6 @@ async def test_sharding_coordinate_selection() -> None:
shards=(2, 4, 4),
)
arr[:] = np.arange(2 * 3 * 4).reshape((2, 3, 4))
assert (arr[1, [0, 1]] == np.array([[12, 13, 14, 15], [16, 17, 18, 19]])).all() # type: ignore[index]
result = arr[1, [0, 1]]
assert isinstance(result, NDArrayLike)
assert (result == np.array([[12, 13, 14, 15], [16, 17, 18, 19]])).all() # type: ignore[index]

0 comments on commit 995a5d5

Please sign in to comment.