Skip to content

Add check for slots=True when creating a dataclass with frozen=True #35

Description

@djmattyg007

Description

Immutable dataclasses should have slots defined. On Python 3.10 and above, this can be achieved trivially with another argument to the same decorator. There should be a check for this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions