Skip to content

Enforce immutability with dataclasses #65

@ShantanuKodgirwar

Description

@ShantanuKodgirwar

As per the paper and the design principle, ExperimentalData, Engines, Params and Monitor must be immutable. However, python doesn't allow this by default. I recommend some refactoring to the base classes to use the python dataclasses library by specifying a decorator @dataclass(frozen=True). This would enforce immutability and also avoid potential bugs and might simplify fixing them in the long-run.

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