Note that in the last output line, the key foo has a value of type Foo, as expected - but the key foos should have a value of type List[Foo] (like originally in output line 1), but instead is a List[int] as in the from_dict it was created from (output line two). The casting we do to TypedDict values does not happen on nested data structures - but they should if so specified in the schema.
I gave this a high priority as it complicates handling of RP Slots structures which are about to be exposed on API level.
results in
Note that in the last output line, the key
foo
has a value of typeFoo
, as expected - but the keyfoos
should have a value of typeList[Foo]
(like originally in output line 1), but instead is aList[int]
as in thefrom_dict
it was created from (output line two). The casting we do toTypedDict
values does not happen on nested data structures - but they should if so specified in the schema.I gave this a high priority as it complicates handling of RP
Slots
structures which are about to be exposed on API level.