MCPcopy Create free account
hub / github.com/dask/dask / __dask_graph__

Method __dask_graph__

dask/array/tests/test_array_core.py:3019–3020  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3017def test_from_array_dask_collection_warns():
3018 class CustomCollection(np.ndarray):
3019 def __dask_graph__(self):
3020 return {"bar": 1}
3021
3022 x = CustomCollection([1, 2, 3])
3023 with pytest.warns(UserWarning):

Calls

no outgoing calls

Tested by

no test coverage detected