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

Method __call__

dask/utils.py:776–781  ·  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

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

Callers

nothing calls this directly

Calls 1

dispatchMethod · 0.95

Tested by

no test coverage detected