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

Method substitute

dask/_task_spec.py:609–614  ·  view source on GitHub ↗
(
        self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None
    )

Source from the content-addressed store, hash-verified

607 return (type(self).__name__, tokenize(self.value))
608
609 def substitute(
610 self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None
611 ) -> DataNode:
612 if key is not None and key != self.key:
613 return DataNode(key, self.value)
614 return self
615
616 def __iter__(self):
617 return iter(self.value)

Callers

nothing calls this directly

Calls 1

DataNodeClass · 0.85

Tested by

no test coverage detected