Skip to content

Commit 64c268d

Browse files
committed
typing.cast field_obj.attribute
1 parent f788111 commit 64c268d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/marshmallow/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def _deserialize(
663663
index=index,
664664
)
665665
if value is not missing:
666-
key = field_obj.attribute
666+
key = typing.cast(str, field_obj.attribute)
667667
set_value(ret_d, key, value)
668668
if unknown != EXCLUDE:
669669
fields = {field_obj.data_key for field_obj in self.load_fields.values()}

0 commit comments

Comments
 (0)