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
I know cattrs does not currently support TypedDict. Is this something that would make sense as a new feature?
I want to convert an input dict into an output dict, ideally with a structure defined as a TypedDict. Each value in the input dict should be converted to the correspondent type in the TypedDict definition. The problem was described in https://stackoverflow.com/q/65196658/2654518.
Description
I know cattrs does not currently support
TypedDict
. Is this something that would make sense as a new feature?I want to convert an input dict into an output dict, ideally with a structure defined as a TypedDict. Each value in the input dict should be converted to the correspondent type in the TypedDict definition. The problem was described in https://stackoverflow.com/q/65196658/2654518.
What I Did
With TypedDict support, the output would be
{'value': 42}
, instead of{'value': '42', 'foo': 'bar'}
.The text was updated successfully, but these errors were encountered: