-
Code sample in pyright playground import enum
class Enum(enum.StrEnum):
something = "something"
find = "find" |
Beta Was this translation helpful? Give feedback.
Answered by
erictraut
Aug 11, 2024
Replies: 1 comment
-
The type |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
belegnar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The type
StrEnum
derives from bothstr
andReprEnum
. Thestr
class declares a method calledfind
, and you are attempting to overwrite this with a value whose type is incompatible with the existing declaration.