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
TypedDict t is not compatible with dict, see https://peps.python.org/pep-0589/#type-consistency. However, they are very practical, for instance, to type hint the context of serializers that expect more arguments.
Using a Mapping for the type would give more flexibility.
The text was updated successfully, but these errors were encountered:
adrianmrit
changed the title
Allow mapping as serializer context
Allow Mapping type as serializer context
Jul 11, 2024
TypedDict
t is not compatible withdict
, see https://peps.python.org/pep-0589/#type-consistency. However, they are very practical, for instance, to type hint the context of serializers that expect more arguments.Using a
Mapping
for the type would give more flexibility.The text was updated successfully, but these errors were encountered: