melodic-magician-71351
02/06/2023, 12:48 PMbroad-monitor-993
02/06/2023, 2:43 PMmelodic-magician-71351
02/06/2023, 2:50 PMNone
changing:
foo: Optional[dict[str, Any] = None
to
foo: dict[str, Any] = field(default_factory=dict)
fixed the problembroad-monitor-993
02/06/2023, 2:59 PMdataclasses_json
might complain about this but it might be useful to bubble this up as a flytekit warning.melodic-magician-71351
02/06/2023, 3:00 PMmelodic-magician-71351
02/06/2023, 3:02 PMdataclasses_json
has a problem with Union
fields but not Optional
fields even though the latter is sugar for the former, but then it requires a multi-typed json schema field anyway so IDK?melodic-magician-71351
02/06/2023, 3:03 PM