You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dataclass_json
@dataclass
class Foo:
foo: Dict
Foo.from_json(Foo.to_json())
results in an error at from_json.
This is caused by missing type annotations, where Dict should be Dict[Any, Any]--though for parsing purposes it is more likely to end up being Dict[str,str]
In any case, the error produced in this case is very unfriendly and probably an easy mistake to make.
The text was updated successfully, but these errors were encountered:
results in an error at
from_json
.This is caused by missing type annotations, where
Dict
should beDict[Any, Any]
--though for parsing purposes it is more likely to end up beingDict[str,str]
In any case, the error produced in this case is very unfriendly and probably an easy mistake to make.
The text was updated successfully, but these errors were encountered: