MCPcopy
hub / github.com/dask/dask / __call__

Method __call__

dask/utils.py:777–782  ·  view source on GitHub ↗

Call the corresponding method based on type of argument.

(self, arg, *args, **kwargs)

Source from the content-addressed store, hash-verified

775 raise TypeError(f"No dispatch for {cls}")
776
777 def __call__(self, arg, *args, **kwargs):
778 """
779 Call the corresponding method based on type of argument.
780 """
781 meth = self.dispatch(type(arg))
782 return meth(arg, *args, **kwargs)
783
784 @property
785 def __doc__(self):

Callers

nothing calls this directly

Calls 1

dispatchMethod · 0.95

Tested by

no test coverage detected