Skip to content

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

@djmattyg007

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions