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

Function _unpack_collections

dask/_expr.py:41–55  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

39
40
41def _unpack_collections(o):
42 from dask.delayed import Delayed
43
44 if isinstance(o, Expr):
45 return o
46
47 if not isinstance(o, Delayed):
48 try:
49 expr = o.expr
50 except AttributeError:
51 pass
52 else:
53 if isinstance(expr, Expr):
54 return expr
55 return o
56
57
58class Expr:

Callers 1

__new__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected