slotscheck icon indicating copy to clipboard operation
slotscheck copied to clipboard

option to disallow `__dict__` slot

Open ariebovenberg opened this issue 2 years ago • 0 comments

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 avatar Jan 11 '22 20:01 ariebovenberg