dacite icon indicating copy to clipboard operation
dacite copied to clipboard

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

Open djpadz opened this issue 8 months ago • 0 comments

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 avatar May 29 '24 20:05 djpadz