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

Function _dataclass_getstate

Lib/dataclasses.py:1250–1251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1248# the code instead of iterating over fields. But that can be a project for
1249# another day, if performance becomes an issue.
1250def _dataclass_getstate(self):
1251 return [getattr(self, f.name) for f in fields(self)]
1252
1253
1254def _dataclass_setstate(self, state):

Callers

nothing calls this directly

Calls 1

fieldsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…