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

Method __init__

dask/_task_spec.py:516–529  ·  view source on GitHub ↗
(
        self, key: KeyType | TaskRef, target: Alias | TaskRef | KeyType | None = None
    )

Source from the content-addressed store, hash-verified

514 __slots__ = tuple(__annotations__)
515
516 def __init__(
517 self, key: KeyType | TaskRef, target: Alias | TaskRef | KeyType | None = None
518 ):
519 if isinstance(key, TaskRef):
520 key = key.key
521 self.key = key
522 if target is None:
523 target = key
524 if isinstance(target, Alias):
525 target = target.target
526 if isinstance(target, TaskRef):
527 target = target.key
528 self.target = target
529 self._dependencies = frozenset((self.target,))
530
531 def __reduce__(self):
532 return Alias, (self.key, self.target)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected