We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67f194 commit 937199fCopy full SHA for 937199f
marshmallow_dataclass/__init__.py
@@ -706,7 +706,10 @@ def _field_for_generic_type(
706
)
707
return tuple_type(children, **metadata)
708
elif origin in (dict, Dict, collections.abc.Mapping, Mapping):
709
- dict_type = type_mapping.get(Dict, marshmallow.fields.Dict)
+ dict_type = cast(
710
+ Type[marshmallow.fields.Mapping],
711
+ type_mapping.get(Dict, marshmallow.fields.Dict),
712
+ )
713
return dict_type(
714
keys=_field_for_schema(arguments[0], base_schema=base_schema),
715
values=_field_for_schema(arguments[1], base_schema=base_schema),
0 commit comments