Fix flag return value type

This commit is contained in:
kotontrion 2024-11-21 09:28:40 +01:00
parent e92edd8ba3
commit bb0178fab5
No known key found for this signature in database
GPG key ID: 597EFDC2EC051AD3

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