Skip to content

Commit

Permalink
fix call correct _field_for_schema function
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderlee committed Jun 24, 2024
1 parent f484596 commit 80dab91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marshmallow_dataclass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ def _field_for_generic_type(
if origin in (dict, Dict, collections.abc.Mapping, Mapping):
dict_type = type_mapping.get(Dict, marshmallow.fields.Dict)
return dict_type(
keys=field_for_schema(arguments[0], base_schema=base_schema),
values=field_for_schema(arguments[1], base_schema=base_schema),
keys=_field_for_schema(arguments[0], base_schema=base_schema),
values=_field_for_schema(arguments[1], base_schema=base_schema),
**metadata,
)

Expand Down

0 comments on commit 80dab91

Please sign in to comment.