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

Method wrapper

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected