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
Using the current master branch, mypy reports a false positive error for the following snippet of code:
fromenumimportEnumclassMyEnum(Enum): ...
classBytesEnum(bytes, MyEnum): ... # error: Only a single data type mixin is allowed for Enum subtypes, found extra "enum_test.MyEnum"
The error is not reported using mypy 0.931.
Expected behaviour
There should be no error reported; this works fine at runtime (and this inheritance structure is in fact used within enum.py in the CPython stdlib).
Using the current master branch, mypy reports a false positive error for the following snippet of code:
The error is not reported using mypy 0.931.
Expected behaviour
There should be no error reported; this works fine at runtime (and this inheritance structure is in fact used within
enum.py
in the CPython stdlib).Related:
cc. @sobolevn
The text was updated successfully, but these errors were encountered: