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

Function _inner_normalize_token

dask/tokenize.py:143–147  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

141
142def _normalize_seq_func(seq: Iterable[object]) -> tuple[object, ...]:
143 def _inner_normalize_token(item):
144 # Don't go through Dispatch. That's slow
145 if isinstance(item, _IDENTITY_DISPATCH):
146 return item
147 return normalize_token(item)
148
149 with tokenize_lock:
150 if id(seq) in _SEEN:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected