Skip to content

Convert ruamel YAML scalars to builtin types on load - #321

Open
vinson0522 wants to merge 3 commits into
cdgriffith:developfrom
vinson0522:fix/yaml-builtin-scalars
Open

Convert ruamel YAML scalars to builtin types on load#321
vinson0522 wants to merge 3 commits into
cdgriffith:developfrom
vinson0522:fix/yaml-builtin-scalars

Conversation

@vinson0522

Copy link
Copy Markdown

Fixes #264.

ruamel.yaml returns ScalarFloat / ScalarInt instead of builtin float / int. Those values survived Box.to_dict() and broke serializers that only accept builtins.

_from_yaml now walks the loaded tree and converts ruamel scalar types to float / int / bool / str.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant