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

Function _tokenize_partial

dask/dataframe/dask_expr/_util.py:83–93  ·  view source on GitHub ↗
(expr, ignore: list | None = None)

Source from the content-addressed store, hash-verified

81
82
83def _tokenize_partial(expr, ignore: list | None = None) -> str:
84 # Helper function to "tokenize" the operands
85 # that are not in the `ignore` list
86 ignore = ignore or []
87 return _tokenize_deterministic(
88 *[
89 op
90 for i, op in enumerate(expr.operands)
91 if i >= len(expr._parameters) or expr._parameters[i] not in ignore
92 ]
93 )
94
95
96class LRU(UserDict[K, V]):

Callers 1

are_co_alignedFunction · 0.90

Calls 1

_tokenize_deterministicFunction · 0.90

Tested by

no test coverage detected