Skip to content

Implement __slots__ to avoid user confusion #508

@MicahGale

Description

@MicahGale

Discussed in #345

Originally posted by MicahGale August 2, 2023
TIL about slots in python: https://stackoverflow.com/questions/472000/usage-of-slots

Basically statically allocating python attributes. The benefit would be to guard against typos frustrating users. For instance cell.materail = mat.

Metadata

Metadata

Assignees

Labels

code improvementA feature request that will improve the software and its maintainability, but be invisible to users.feature requestAn issue that improves the user interface.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions