I have the following type:
NDArray[Shape['2'], float]
and this json:
When trying to deserialize from json, I would get the following error:
Value error, Invalid dtype! expected (<class 'numpy.float16'>, <class 'numpy.float32'>, <class 'numpy.float64'>, <class 'numpy.float32'>, <class 'numpy.float64'>), got int64 [type=value_error, input_value=[150, 100], input_type=list]
For further information visit https://errors.pydantic.dev/2.10/v/value_error
This requirement seems too strict. Is it possible to automatically convert from integer to floats in this case?
I have the following type:
and this json:
When trying to deserialize from json, I would get the following error:
This requirement seems too strict. Is it possible to automatically convert from integer to floats in this case?