Fix flag return value type

This commit is contained in:
kotontrion 2024-11-21 09:28:40 +01:00
parent f48b840cfa
commit 2ae41020ab

View file

@ -211,7 +211,7 @@ class Flag(AstNode):
return self.tokens["value"]
@property
def value(self) -> T.Optional[int]:
def value(self) -> T.Optional[str]:
type = self.context[ValueTypeCtx].value_type
if not isinstance(type, Enumeration):
return None