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.