MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _dataclass_getstate

Function _dataclass_getstate

tools/python-3.11.9-amd64/Lib/dataclasses.py:1123–1124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1121# the code instead of iterating over fields. But that can be a project for
1122# another day, if performance becomes an issue.
1123def _dataclass_getstate(self):
1124 return [getattr(self, f.name) for f in fields(self)]
1125
1126
1127def _dataclass_setstate(self, state):

Callers

nothing calls this directly

Calls 1

fieldsFunction · 0.85

Tested by

no test coverage detected