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

Method __call__

dask/typing.py:37–60  ·  view source on GitHub ↗

Method called as the default scheduler for a collection. Parameters ---------- dsk : The task graph. keys : Key(s) corresponding to the desired data. **kwargs : Additional arguments. Returns -------

(
        self,
        dsk: Graph,
        keys: Sequence[Key] | Key,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

35 """Protocol defining the signature of a ``__dask_scheduler__`` callable."""
36
37 def __call__(
38 self,
39 dsk: Graph,
40 keys: Sequence[Key] | Key,
41 **kwargs: Any,
42 ) -> Any:
43 """Method called as the default scheduler for a collection.
44
45 Parameters
46 ----------
47 dsk :
48 The task graph.
49 keys :
50 Key(s) corresponding to the desired data.
51 **kwargs :
52 Additional arguments.
53
54 Returns
55 -------
56 Any
57 Result(s) associated with `keys`
58
59 """
60 raise NotImplementedError("Inheriting class must implement this method.")
61
62
63class PostPersistCallable(Protocol[CollType_co]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected