MCPcopy
hub / github.com/dask/dask / _normalize_pure_object

Function _normalize_pure_object

dask/tokenize.py:222–230  ·  view source on GitHub ↗
(o: object)

Source from the content-addressed store, hash-verified

220
221
222def _normalize_pure_object(o: object) -> tuple[str, int]:
223 _maybe_raise_nondeterministic(
224 "object() cannot be deterministically hashed. See "
225 "https://docs.dask.org/en/latest/custom-collections.html#implementing-deterministic-hashing "
226 "for more information."
227 )
228 # Idempotent, but not deterministic. Make sure that the id is not reused.
229 _seen_objects.add(o)
230 return "object", id(o)
231
232
233def _normalize_pickle(o: object) -> tuple:

Callers 1

normalize_objectFunction · 0.85

Calls 2

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…