Skip to content

Commit

Permalink
Fix call to get_declared_fields: pass dict_cls
Browse files Browse the repository at this point in the history
Pass dict_cls even if a defaut was added to get_declared_fields, for
compatibility with classes overriding get_declared_fields with no
default value.
  • Loading branch information
lafrech committed Jul 20, 2023
1 parent 3d92995 commit bdcd950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def __new__(mcs, name, bases, attrs):
klass=klass,
cls_fields=cls_fields,
inherited_fields=inherited_fields,
dict_cls=dict,
)
return klass

Expand Down

0 comments on commit bdcd950

Please sign in to comment.