Skip to content

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

@petertdavies

Description

@petertdavies

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions