From b43a4840ac0ebe94cefeb5cc1acdaad54c31d052 Mon Sep 17 00:00:00 2001 From: Tim Rid <6593626+timrid@users.noreply.github.com> Date: Thu, 29 Apr 2021 15:50:49 +0200 Subject: [PATCH] Fixed "encmapping" of "Enum". Every string can be used as key --- construct-stubs/core.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/construct-stubs/core.pyi b/construct-stubs/core.pyi index 4403c05..879c0cc 100644 --- a/construct-stubs/core.pyi +++ b/construct-stubs/core.pyi @@ -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__(