Closed DanielleFundbox closed 4 years ago
original exception is
dataclasses_serialization.serializer_base.DeserializationError: Cannot deserialize <class 'NoneType'> None to type <class 'int'>
Duplicate of https://github.com/madman-bob/python-dataclasses-serialization/issues/5.
None
is not of type int
, so it rightfully throws an error.
You want Optional[int]
.