Hi. As you can see from the supplied testcase, the save() method with nested dataclass fields is broken. The returned dataclass has fields that violate type declaration: house.owner has type OrderedDict instead of Person. Same with the house.residents list elements.
This seems like a pretty major omission to me, or am I missing something?
Any ideas about what's the most reasonable way to fix this?
Hi. As you can see from the supplied testcase, the
save()
method with nested dataclass fields is broken. The returned dataclass has fields that violate type declaration:house.owner
has typeOrderedDict
instead ofPerson
. Same with thehouse.residents
list elements.This seems like a pretty major omission to me, or am I missing something?
Any ideas about what's the most reasonable way to fix this?