slotscheck
slotscheck copied to clipboard
option to disallow `__dict__` slot
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.