Skip to content

Commit f61370c

Browse files
committed
typing.cast field_obj.data_key
1 parent 747f364 commit f61370c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/marshmallow/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _deserialize(
633633
else:
634634
partial_is_collection = is_collection(partial)
635635
for attr_name, field_obj in self.load_fields.items():
636-
field_name = field_obj.data_key
636+
field_name = typing.cast(str, field_obj.data_key)
637637
raw_value = data.get(field_name, missing)
638638
if raw_value is missing:
639639
# Ignore missing field if we're allowed to.

0 commit comments

Comments
 (0)