This may be related to issue #1390 .
I have a false positive inherit-non-class error on the following code:
import enum
from enum import Enum
# Inheriting 'enum.Enum', which is not a class.Python(inherit-non-class)
class FooEnum(enum.Enum):
FOO: int = 1
BAR: int = 2
# Inheriting 'Enum', which is not a class.Python(inherit-non-class)
class BarEnum(Enum):
FOO: int = 1
BAR: int = 2
Related Python documentation: enum.
That's mine. For now you can do:
"python.analysis.disabled": [
"inherit-non-class"
],
Thanks for the report!
Most helpful comment
That's mine. For now you can do:
Thanks for the report!