Skip to content

Commit

Permalink
Remove default value for data in Nested._deserialize (#2803)
Browse files Browse the repository at this point in the history
* Remove default value for data in Nested._deserialize

* Update changelog
  • Loading branch information
sloria authored Jan 31, 2025
1 parent ffb75f6 commit 7d15bae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
---------

(unreleased)
************

Other changes:

- Remove default value for the ``data`` param of `Nested._deserialize <marshmallow.fields.Nested._deserialize>` (:issue:`2802`).
Thanks :user:`gbenson` for reporting.


3.26.0 (2025-01-22)
*******************

Expand Down
2 changes: 1 addition & 1 deletion src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def _deserialize(
self,
value: typing.Any,
attr: str | None,
data: typing.Mapping[str, typing.Any] | None = None,
data: typing.Mapping[str, typing.Any] | None,
partial: bool | types.StrSequenceOrSet | None = None,
**kwargs,
) -> typing.Any:
Expand Down

0 comments on commit 7d15bae

Please sign in to comment.