Bump marshmallow from 3.21.1 to 4.0.1
Bumps marshmallow from 3.21.1 to 4.0.1.
Changelog
Sourced from marshmallow's changelog.
4.0.1 (2025-08-28) ++++++++++++++++++
Bug fixes:
- Fix wildcard import of
from marshmallow import *(:pr:2823). Thanks :user:Florian-Laportfor the PR.4.0.0 (2025-04-16)
See :ref:
upgrading_4_0for a guide on updating your code.Features:
- Typing: Add types to all
Field <marshmallow.fields.Field>constructor kwargs (:issue:2285). Thanks :user:navignawfor the suggestion.DateTime <marshmallow.fields.DateTime>,Date <marshmallow.fields.Date>,Time <marshmallow.fields.Time>,TimeDelta <marshmallow.fields.TimeDelta>, andEnum <marshmallow.fields.Enum>accept their internal value types as valid input (:issue:1415). Thanks :user:bitdancerfor the suggestion.@validates <marshmallow.validates>accepts multiple field names (:issue:1960). Backwards-incompatible: Decorated methods now receivedata_keyas a keyword argument. Thanks :user:dpriskornfor the suggestion and :user:dharani7998for the PR.Other changes:
Typing:
Field <marshmallow.fields.Field>is now a generic type with a type argument for the internal value type.
marshmallow.fields.UUIDno longer subclassesmarshmallow.fields.String.
marshmallow.Schema.loadno longer silently fails to call schema validators when a generator is passed (:issue:1898). The typing ofdatais also updated to be more accurate. Thanks :user:ziplokk1for reporting.Backwards-incompatible: Use
datetime.date.fromisoformat,datetime.time.fromisoformat, anddatetime.datetime.fromisoformatfrom the standard library to deserialize dates, times and datetimes (:pr:2078). As a consequence of this change:
- Time with time offsets are now supported.
- YYYY-MM-DD is now accepted as a datetime and deserialized as naive 00:00 AM.
from_iso_date,from_iso_timeandfrom_iso_datetimeare removed frommarshmallow.utils.Remove
isoformat,to_iso_timeandto_iso_datetimefrommarshmallow.utils(:pr:2766).Remove
from_rfc, andrfcformatfrommarshmallow.utils(:pr:2767).Remove
is_keyed_tuplefrommarshmallow.utils(:pr:2768).Remove
get_fixed_timezonefrommarshmallow.utils(:pr:2773).Backwards-incompatible:
marshmallow.fields.Booleanno longer serializes non-boolean values (:pr:2725).Backwards-incompatible: Rename
schemaparameter toparentinmarshmallow.fields.Field._bind_to_schema(:issue:1360).Backwards-incompatible: Rename
pass_manyparameter topass_collectionin pre/post processing methods (:issue:1369).Backwards-incompatible:
marshmallow.fields.TimeDeltano longer truncates float values when deserializing (:pr:2654). This allows microseconds to be preserved, e.g... code-block:: python
... (truncated)
Commits
757714bBump version and update changelog407c2c5Remove incorrect documentaion of field_name param (#2846)8c83dd6Bump sphinxext-opengraph from 0.11.0 to 0.12.0 (#2844)24225a3Bump sphinxext-opengraph from 0.10.0 to 0.11.0 (#2843)172f40f[pre-commit.ci] pre-commit autoupdateb84d50bAdd edit button to docs (#2841)7008262Bump furo from 2024.8.6 to 2025.7.19 (#2837)2feeda7docs: fix tuple spelling mistake (#2838)0c1dd99Update pre-commit deps (#2840)7266de0[pre-commit.ci] pre-commit autoupdate- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)