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

Method __new__

dask/utils.py:1222–1229  ·  view source on GitHub ↗
(cls, method: str)

Source from the content-addressed store, hash-verified

1220 return self.method
1221
1222 def __new__(cls, method: str):
1223 try:
1224 return _method_cache[method]
1225 except KeyError:
1226 self = object.__new__(cls)
1227 self.method = method
1228 _method_cache[method] = self
1229 return self
1230
1231 def __call__(self, __obj, *args, **kwargs):
1232 return getattr(__obj, self.method)(*args, **kwargs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected