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
In my projects I often use dacite with objects that were returned from functions with Mapping[str, Any] in return annotation or MutableMapping[str, Any] which clashes with the from_dict signature that expects a Dict[str, Any] as a data type, and therefore forces to use typing.cast(dict, obj) every time.
Is it necessary to use a Dict as data type?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello!
In my projects I often use dacite with objects that were returned from functions with
Mapping[str, Any]
in return annotation orMutableMapping[str, Any]
which clashes with thefrom_dict
signature that expects aDict[str, Any]
as a data type, and therefore forces to use typing.cast(dict, obj) every time.Is it necessary to use a Dict as data type?
Thanks.
The text was updated successfully, but these errors were encountered: