ethereum / ethereum/execution-specs
refactor(spec): Replace `@slotted_freezable` with `@dataclasses(frozen=True,slots=True)`
Open
stale
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 505
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 116
Description
The functionality that `@slotted_freezable` implements has been available out of the box in python dataclasses since Python 3.10.
Uses of `modify()` will need to be replaced by `dataclasses.replace()`. This should be straightforward refactor.
Contributor guide
Assessment
This issue has not been assessed yet.