dacite
dacite copied to clipboard
Adding a special case for floats that are passed the strings "nan" or "inf"
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.