MCPcopy Index your code
hub / github.com/dask/dask / wrapper

Method wrapper

dask/utils.py:722–728  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

720 """Register dispatch of `func` on arguments of type `type`"""
721
722 def wrapper(func):
723 if isinstance(type, tuple):
724 for t in type:
725 self.register(t, func)
726 else:
727 self._lookup[type] = func
728 return func
729
730 return wrapper(func) if func is not None else wrapper
731

Callers

nothing calls this directly

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected