ethereum / ethereum/execution-specs

refactor(spec): Replace `@slotted_freezable` with `@dataclasses(frozen=True,slots=True)`

Open
#2,135 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.