Commit 9992d57b authored by di68kap's avatar di68kap
Browse files

ts2dataclass extended

parent 68c5ee9c
......@@ -301,7 +301,7 @@ class ts2dataclassCompiler(Compiler):
val = int(literal)
return f'IntEnum("{val}", {val})'
except ValueError:
return f'Enum({val}, {val})'
return f'Enum({literal}, {literal})'
else:
assert literal_typ == 'string'
literal = self.compile(typ)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment