Skip to content

refactor: remove the unused _state slot from the Container#94

Merged
adriangb merged 1 commit into
adriangb:mainfrom
SamWarden:refactoring/container_state
Feb 1, 2023
Merged

refactor: remove the unused _state slot from the Container#94
adriangb merged 1 commit into
adriangb:mainfrom
SamWarden:refactoring/container_state

Conversation

@SamWarden

Copy link
Copy Markdown
Contributor

The __slots__ of the Container class has a declared _state attribute that is never used internally. Is there a reason for declaring it, maybe it should be removed?
I found a commit with the first addition of this attribute, but I still don't see a reason for it.
If there is, maybe it should be documented with a comment?

@adriangb

adriangb commented Feb 1, 2023

Copy link
Copy Markdown
Owner

I think you’re right. Generally it does not hurt to have extra slots and there’s no automated mechanism to catch them. Hence why this slipped through the cracks. Thanks for taking a careful look.

@adriangb adriangb merged commit f5764c7 into adriangb:main Feb 1, 2023
@SamWarden SamWarden deleted the refactoring/container_state branch February 1, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants