MCPcopy
hub / github.com/dask/dask / __init__

Method __init__

dask/_task_spec.py:1007–1012  ·  view source on GitHub ↗
(self, dsk)

Source from the content-addressed store, hash-verified

1005
1006class DependenciesMapping(MutableMapping):
1007 def __init__(self, dsk):
1008 self.dsk = dsk
1009 self._removed = set()
1010 # Set a copy of dsk to avoid dct resizing
1011 self._cache = dsk.copy()
1012 self._cache.clear()
1013
1014 def __getitem__(self, key):
1015 if (val := self._cache.get(key)) is not None:

Callers

nothing calls this directly

Calls 3

setClass · 0.85
copyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected