fixed __new__

This commit is contained in:
Tim Rid 2021-03-24 20:19:15 +01:00
parent 5c6f5020f9
commit f64f1cac6c

View file

@ -46,7 +46,7 @@ class TEnum(Adapter[int, int, EnumType, EnumType]):
def __new__(
cls, subcon: Construct[int, int], enum_type: t.Type[EnumType]
) -> Adapter[int, int, EnumType, EnumType]:
) -> "TEnum[EnumType]":
...
def __init__(self, subcon: Construct[int, int], enum_type: t.Type[EnumType]):
@ -94,7 +94,7 @@ class TFlagsEnum(Adapter[int, int, FlagsEnumType, FlagsEnumType]):
def __new__(
cls, subcon: Construct[int, int], enum_type: t.Type[FlagsEnumType]
) -> Adapter[int, int, FlagsEnumType, FlagsEnumType]:
) -> "TFlagsEnum[FlagsEnumType]":
...
def __init__(self, subcon: Construct[int, int], enum_type: t.Type[FlagsEnumType]):