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

Method __dask_graph__

dask/typing.py:108–127  ·  view source on GitHub ↗

The Dask task graph. The core Dask collections (Array, DataFrame, Bag, and Delayed) use a :py:class:`~dask.highlevelgraph.HighLevelGraph` to represent the collection task graph. It is also possible to represent the task graph as a low level graph using a Python

(self)

Source from the content-addressed store, hash-verified

106
107 @abc.abstractmethod
108 def __dask_graph__(self) -> Graph:
109 """The Dask task graph.
110
111 The core Dask collections (Array, DataFrame, Bag, and Delayed)
112 use a :py:class:`~dask.highlevelgraph.HighLevelGraph` to
113 represent the collection task graph. It is also possible to
114 represent the task graph as a low level graph using a Python
115 dictionary.
116
117 Returns
118 -------
119 Mapping
120 The Dask task graph. If the instance returns a
121 :py:class:`dask.highlevelgraph.HighLevelGraph` then the
122 :py:func:`__dask_layers__` method must be implemented, as
123 defined by the :py:class:`~dask.typing.HLGDaskCollection`
124 protocol.
125
126 """
127 raise NotImplementedError("Inheriting class must implement this method.")
128
129 @abc.abstractmethod
130 def __dask_keys__(self) -> NestedKeys:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected