Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Switch on slots=True for dataclasses #274

Open
jonnyh404 opened this issue Feb 12, 2024 · 0 comments
Open

Switch on slots=True for dataclasses #274

jonnyh404 opened this issue Feb 12, 2024 · 0 comments
Labels
enhancement New feature or request refactoring

Comments

@jonnyh404
Copy link
Collaborator

jonnyh404 commented Feb 12, 2024

Currently default behaviour of dataclass with slots=False is not preferable. This allows for inadvertent setting of unnamed parameters.

Describe the solution you'd like
Set dataclass(slots=True) in all dataclasses (eventually moving to a setting of the default behaviour of dataclass across the project)

@jonnyh404 jonnyh404 added enhancement New feature or request refactoring labels Feb 12, 2024
@jonnyh404 jonnyh404 changed the title Switch on frozen=True for dataclasses Switch on slots=True for dataclasses Feb 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request refactoring
Projects
None yet
Development

No branches or pull requests

1 participant