Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

option to disallow __dict__ slot #29

Open
ariebovenberg opened this issue Jan 11, 2022 · 0 comments
Open

option to disallow __dict__ slot #29

ariebovenberg opened this issue Jan 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ariebovenberg
Copy link
Owner

It's still possible to enable arbitrary attributes on a class by adding __dict__ to __slots__. This is explicitly endorsed in the documentation, but it may be worth adding a flag to enable treating this like an error.

@ariebovenberg ariebovenberg added the enhancement New feature or request label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant