MCPcopy Index your code
hub / github.com/dask/dask / _flat_set

Function _flat_set

dask/optimization.py:231–238  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

229
230
231def _flat_set(x):
232 if x is None:
233 return set()
234 elif isinstance(x, set):
235 return x
236 elif not isinstance(x, (list, set)):
237 x = [x]
238 return set(x)
239
240
241def inline(dsk, keys=None, inline_constants=True, dependencies=None):

Callers 1

inlineFunction · 0.85

Calls 1

setClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…