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

Method __init__

dask/highlevelgraph.py:337–343  ·  view source on GitHub ↗
(self, mapping: Mapping, annotations=None, collection_annotations=None)

Source from the content-addressed store, hash-verified

335 """
336
337 def __init__(self, mapping: Mapping, annotations=None, collection_annotations=None):
338 super().__init__(
339 annotations=annotations, collection_annotations=collection_annotations
340 )
341 if not isinstance(mapping, Mapping):
342 raise TypeError(f"mapping must be a Mapping. Instead got {type(mapping)}")
343 self.mapping = mapping
344
345 def __contains__(self, k):
346 return k in self.mapping

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected