Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding a special case for floats that are passed the strings "nan" or "inf" #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djpadz
Copy link

@djpadz djpadz commented May 29, 2024

A case could be made for or against this, but we had a situation where dacite was being used to import data from a JSON file. Since JSON doesn't support INF and NAN as numeric values, from_dict was failing if those values were passed as strings.

@djpadz djpadz force-pushed the accept-nan-and-inf-as-floats branch from bed8139 to bd42467 Compare May 29, 2024 20:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant