Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better externalization of numbers. #101

Merged
merged 1 commit into from Mar 27, 2020
Merged

Better externalization of numbers. #101

merged 1 commit into from Mar 27, 2020

Conversation

jamadden
Copy link
Member

numbers.Number instances aren't guaranteed to be externalizable, so don't treat them that way (as primitives). Only list as primitives those types that we're sure about. The rest need to be registered.

Do so for fractions.Fraction and decimal.Decimal for both JSON and YAML.

numbers.Number instances aren't guaranteed to be externalizable, so don't treat them that way (as primitives). Only list as primitives those types that we're sure about. The rest need to be registered.

Do so for fractions.Fraction and decimal.Decimal for both JSON and YAML.
@jamadden jamadden requested a review from jzuech3 March 26, 2020 14:28
Copy link

@jzuech3 jzuech3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jamadden jamadden merged commit c30c760 into master Mar 27, 2020
@jamadden jamadden deleted the externalize-fraction branch March 27, 2020 15:14
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.

None yet

2 participants