Skip to content

Commit

Permalink
typing.cast field_obj.attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Oct 28, 2021
1 parent 1feec81 commit a53475a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def _deserialize(
index=index,
)
if value is not missing:
key = field_obj.attribute
key = typing.cast(str, field_obj.attribute)
set_value(ret_d, key, value)
if unknown != EXCLUDE:
fields = {field_obj.data_key for field_obj in self.load_fields.values()}
Expand Down

0 comments on commit a53475a

Please sign in to comment.