Update dependency marshmallow to v4#5330
Open
elastic-renovate-prod[bot] wants to merge 1 commit intomainfrom
Open
Update dependency marshmallow to v4#5330elastic-renovate-prod[bot] wants to merge 1 commit intomainfrom
elastic-renovate-prod[bot] wants to merge 1 commit intomainfrom
Conversation
032f24b to
968fe1e
Compare
968fe1e to
c9e9eed
Compare
c9e9eed to
56ea580
Compare
56ea580 to
7fd01b1
Compare
7fd01b1 to
850850c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=3.26.1->~=4.2.2Release Notes
marshmallow-code/marshmallow (marshmallow)
v4.2.2Compare Source
Bug fixes:
fields.Contant(None)(:issue:2868).Thanks :user:
T90REALfor reporting andemmanuel-ferdmanfor the fix.v4.2.1Compare Source
Bug fixes:
FILE(:issue:2891).Thanks :user:
thanhleconggfor reporting and fixing.v4.2.0Compare Source
Other changes:
manyargument ofNestedproperly overrides schema instancevalue (:pr:
2854). Thanks :user:jafournierfor the PR.v4.1.2Compare Source
Bug fixes:
2025-68480: Merge error store messages without rebuilding collections.Thanks 카푸치노 for reporting and :user:
deckar01for the fix.v4.1.1Compare Source
Bug fixes:
URLvalidator is case-insensitive when using custom schemes (:pr:2874).Thanks :user:
T90REALfor the PR.v4.1.0Compare Source
Other changes:
__len__implementation tomissingso that it can be used withvalidate.Length <marshmallow.validate.Length>(:pr:2861).Thanks :user:
agentgodzillafor the PR.2363).2864).v4.0.1Compare Source
Bug fixes:
from marshmallow import *(:pr:2823).Thanks :user:
Florian-Laportfor the PR.v4.0.0Compare Source
See :ref:
upgrading_4_0for a guide on updating your code.Features:
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 receive
data_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 of
datais 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:
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 whendeserializing (:pr:
2654). This allows microseconds to be preserved, e.g... code-block:: python
Before
datetime.timedelta(seconds=12)
After
datetime.timedelta(seconds=12, microseconds=900000)
marshmallow.fields.TimeDeltaserialization (:pr:2654).serialization_typeparameter frommarshmallow.fields.TimeDelta(:pr:2654).Thanks :user:
ddelangefor the PR.Schema <marshmallow.schema.Schema>'scontextattribute (deprecated since 3.24.0). Passing a contextshould be done using
contextvars.ContextVar(:issue:1826).marshmallow 4 provides an experimental
Context <marshmallow.experimental.context.Context>manager class that can be used to both set and retrieve context.
.. code-block:: python
{'name_suffixed': 'foobar'}
marshmallow.pre_load,marshmallow.post_load,marshmallow.validates_schema,receive
unknownas a keyword argument (:pr:1632).Thanks :user:
jforandfor the PR.decorators <marshmallow.decorators>are keyword-only arguments.json_dataparameter ofmarshmallow.Schema.loadstosfor compatibility with most render module implementations (
json,simplejson, etc.) (:pr:2764).Also make it a positional-only argument.
errors at class declaration time (previously happended when the schema was instantiated) (:pr:
2772).unknownwill cause an error in type checkers (:pr:2771).Deprecations/Removals:
fieldsoradditionalclass Meta options with undeclared fields (:issue:1356).orderedclass Meta option is removed (:issue:2146). Field order is already preserved by default.Set
Schema.dict_classtoOrderedDictto maintain the previous behavior.marshmallow.basemodule is removed (:pr:2722).Previously-deprecated APIs have been removed, including:
orderedclass Meta <marshmallow.Schema.Meta>option is removed (:issue:2146) (deprecated in 3.26.0).marshmallow.fields.Numberis no longer usable as a field in a schema (deprecated in 3.24.0).Use
marshmallow.fields.Integer,marshmallow.fields.Float, ormarshmallow.fields.Decimalinstead.marshmallow.fields.Mappingis no longer usable as a field in a schema (deprecated in 3.24.0).ValidationError <marshmallow.exceptions.ValidationError>for invalid values (deprecated in 3.24.0).Returning
Falseis no longer supported (:issue:1775).Use
marshmallow.fields.Dictinstead.__version__,__parsed_version__, and__version_info__attributes (deprecated in 3.21.0).defaultandmissingparameters, which were replaced bydump_defaultandload_defaultin 3.13.0 (:pr:1742, :pr:2700).metadata=...argument instead (:issue:
1350).marshmallow.utils.pprint(deprecated in 3.7.0). Usepprint.pprintinstead."self"tofields.Nested(deprecated in 3.3.0). Use a callable instead.Field.fail, which was replaced byField.make_errorin 3.0.0.json_moduleclass Meta option (deprecated in 3.0.0b3). Userender_moduleinstead.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.