Skip to content

Prevent mutable defaults  #53

@dbanty

Description

@dbanty

It is possible for a default value to be something like an empty dict which is not allowed by a dataclass. If possible, we should prevent that and instead use defaultfactory when creating fields like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions