Fixed "encmapping" of "Enum". Every string can be used as key
This commit is contained in:
parent
64731e4050
commit
b43a4840ac
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ class EnumIntegerString(str):
|
|||
def new(intvalue: int, stringvalue: str) -> EnumIntegerString: ...
|
||||
|
||||
class Enum(Adapter[int, int, ParsedType, BuildTypes]):
|
||||
encmapping: t.Dict[EnumIntegerString, int]
|
||||
encmapping: t.Dict[str, int]
|
||||
decmapping: t.Dict[int, EnumIntegerString]
|
||||
ksymapping: t.Dict[int, str]
|
||||
def __new__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue