Sourced from marshmallow's changelog.
3.24.0 (2025-01-06)
Features:
- Typing: Improve typings in
marshmallow.fields
(:pr:2723
).- Typing: Replace type comments with inline typings (:pr:
2718
).Bug fixes:
- Typing: Fix type hint for
nested
parameter ofNested <marshmallow.fields.Nested>
(:pr:2721
).Deprecations:
- Custom validators should raise a
ValidationError <marshmallow.exceptions.ValidationError>
for invalid values. Returning `False`` is no longer supported .- Deprecate
context
parameter ofSchema <marshmallow.schema.Schema>
(:issue:1826
). UsecontextVars.ContextVar
to pass context data instead.Field <marshmallow.fields.Field>
,Mapping <marshmallow.fields.Mapping>
, andNumber <marshmallow.fields.Number>
should no longer be used as fields within schemas. Use their subclasses instead.3.23.3 (2025-01-03)
Bug fixes:
- Typing: Fix typing for
Schema.from_dict <marshmallow.schema.Schema.from_dict>
(:issue:1653
). Thanks :user:SteadBytes
for reporting.Support:
- Documentation: Various documentation cleanups, including more concise docs in the
marshmallow.fields
API reference (:issue:2307
). Thanks :user:AbdealiLoKo
for reporting.3.23.2 (2024-12-18)
Bug fixes:
- Improve type hint formatting for
Field
,Nested
, andFunction
fields to resolve PyCharm warnings (:issue:2268
). Thanks :user:Fares-Abubaker
for reporting and fixing.3.23.1 (2024-11-01)
Support:
... (truncated)
9136ff9
Bump version and update changelog8ca596d
Deprecation warnings for marshmallow 4 changes (#2732)71ab95a
Deprecate context (#2731)a3049aa
One more casing fixea2b0ed
Make casing consistent across docs (#2726)560eed7
Fix typing for schema param of _bind_to_schema (#2724)447eb86
Various typing improvements to fields module (#2723)c188cdb
Fixes and improvements to Nested typing (#2721)f4ca03f
Replace type comments with inline typing (#2718)1a58c1f
Various build updates (#2717)