MCPcopy
hub / github.com/dask/dask / wrapper

Method wrapper

dask/backends.py:137–151  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

135
136 @wraps(fn)
137 def wrapper(*args, **kwargs):
138 func = getattr(self, dispatch_name)
139 try:
140 return func(*args, **kwargs)
141 except Exception as e:
142 try:
143 exc = type(e)(
144 f"An error occurred while calling the {funcname(func)} "
145 f"method registered to the {self.backend} backend.\n"
146 f"Original Message: {e}"
147 )
148 except TypeError:
149 raise e
150 else:
151 raise exc from e
152
153 wrapper.__name__ = dispatch_name
154 return wrapper

Callers

nothing calls this directly

Calls 2

funcnameFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected