You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced with v0.1.6 running ruff foo.pyi --select PYI052 without any settings in pyproject.toml.
The text was updated successfully, but these errors were encountered:
henribru
changed the title
PYI052 should ignore assignments in subclass of empty enum
PYI052 should ignore assignments in subclass of enum without enum members
Nov 19, 2023
PYI052 correctly accepts the following code:
However, it flags the assignments to
FOO
andBAR
in this code:Inheriting from enums without enum members works at runtime and is understood by typecheckers, so I think these two examples should be treated the same. https://mypy-play.net/?mypy=latest&python=3.11&gist=cdb6a82662cbb77416bb64692606cb83
Reproduced with v0.1.6 running
ruff foo.pyi --select PYI052
without any settings inpyproject.toml
.The text was updated successfully, but these errors were encountered: