bp / bp/ResSimpy

Switch on slots=True for dataclasses

Open
#274 0 comments 0 reactions 0 assignees View on GitHub
enhancement refactoring
Dominant language
Python
Stars
23
Forks
8
Avg merge
16d 4h
Merged PRs (30d)
1

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.