MCPcopy Index your code
hub / github.com/python/cpython / _dataclass_setstate

Function _dataclass_setstate

Lib/dataclasses.py:1254–1257  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

1252
1253
1254def _dataclass_setstate(self, state):
1255 for field, value in zip(fields(self), state):
1256 # use setattr because dataclass may be frozen
1257 object.__setattr__(self, field.name, value)
1258
1259
1260def _get_slots(cls):

Callers

nothing calls this directly

Calls 2

fieldsFunction · 0.85
__setattr__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…