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

Class DummyCollection

dask/tests/test_base.py:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53def test_is_dask_collection():
54 class DummyCollection:
55 def __init__(self, dsk):
56 self.dask = dsk
57
58 def __dask_graph__(self):
59 return self.dask
60
61 x = delayed(1) + 2
62 assert is_dask_collection(x)

Callers 2

test_is_dask_collectionFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_is_dask_collectionFunction · 0.68