Should SomeStrEnum(str, Enum)
require SLOT000
?
#5747
Replies: 1 comment
-
Looks like a bug, I converted to an issue #5748/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please see the below file with Python 3.10.10:
Running
ruff==0.0.278
on this:Running
flake8-slots==0.1.5
withflake8==4.0.1
on this, there's no error:> flake8 a.py
Fwiw, Python 3.11's built-in
enum.StrEnum
doesn't seem to define__slots__
.I am not sure if there should or should not be
SLOT000
for this. Looks like @qdegraaf addedSLOT
rule inruff==0.0.273
, so notifying him.I am thinking either:
SLOT000
StrEnum
define__slots__
?Beta Was this translation helpful? Give feedback.
All reactions