Open
Description
As of Dask 2025.2.0:
>>> import dask.array as da
>>> a = da.zeros((0, 2))
>>> b = da.ones((0, 2))
>>> a[:, :] = b
ValueError: shape mismatch: value array of shape (0, 2) could not be broadcast to indexing result of shape (0, 2)
Impact
This edge case by itself is unimportant; however it has a magnified impact in array_api_tests
as it forces all tests for __setitem__
to be XFAILed due to how hypothesis testing works.