MCPcopy
hub / github.com/dask/dask / _normalize_dataclass

Function _normalize_dataclass

dask/tokenize.py:266–274  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

264
265
266def _normalize_dataclass(obj):
267 fields = [
268 (field.name, normalize_token(getattr(obj, field.name, None)))
269 for field in dataclasses.fields(obj)
270 ]
271 params = obj.__dataclass_params__
272 params = [(attr, getattr(params, attr)) for attr in params.__slots__]
273
274 return normalize_object(type(obj)), params, fields
275
276
277@normalize_token.register_lazy("pandas")

Callers 1

normalize_objectFunction · 0.85

Calls 1

normalize_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…