Open
Description
Description
ruff check --select=SLOT .
ruff --version 0.8.4
class Backend(RandomClass, tuple):
pass
^ suggests a fixit here. This is the recommended class structure for old versions of python before strenum was introduced. However, enum doesn't have slots defined, so defining a i also see this bug happen when a class has multiple ancestors, one of which is a tuple.__slots__
wouldn't be that helpful.
Actually, nevermind, this error was actually masking another error where enum was not properly imported. Seems odd to suggest a fixit in this situation. In other cases though, I do see the error pop up when only one of the ancestors is a tuple.