Open lixinchin opened 2 years ago
Example:
import yamlize class Test(yamlize.Object): field: float = yamlize.Attribute(type=float) temp = Test.load("!Test\nfield: 10") print(Test.dump(temp))
Expected output:
"!Test\nfield: 10.0\n"
Actual output:
"!Test\nfield: !!int '10.0'\n"
Yea, that's wrong.
This also seems pretty closely related to https://github.com/SimplyKnownAsG/yamlize/issues/15
Example:
Expected output:
Actual output: