MCPcopy
hub / github.com/dask/dask / normalize_builtin_function_or_method

Function normalize_builtin_function_or_method

dask/tokenize.py:185–191  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

183
184@normalize_token.register(types.BuiltinFunctionType)
185def normalize_builtin_function_or_method(func):
186 # Note: BuiltinMethodType is BuiltinFunctionType
187 self = getattr(func, "__self__", None)
188 if self is not None and not inspect.ismodule(self):
189 return normalize_bound_method(func)
190 else:
191 return normalize_object(func)
192
193
194@normalize_token.register(object)

Callers

nothing calls this directly

Calls 2

normalize_bound_methodFunction · 0.85
normalize_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…