chore(deps): update dependency mashumaro to v3 #298
Merged
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:
2.11
->3.8.1
Release Notes
Fatal1ty/mashumaro (mashumaro)
v3.8.1
Compare Source
Changes
TypeError
if one of the fields was overridden (#118) or post-deserialize hook was used (#120)v3.8
Compare Source
Changes
Discriminator
type for discriminated unions and subclasses support, see documentation (#106)to_*
methods to the hooks, see documentation (#110)Annotated
are now different from unenclosed ones inserialization_strategy
, see documentation (#115)lazy_compilation
config option that can reduce import time and speed up deserialization, see documentationFinal
types (#107)Literal
on Python 3.9.0 (#103)SerializableType
when TypeVars were mixed with ordinary types in_serialize
/_deserialize
annotationsdataclasses.KW_ONLY
resulted inUnserializableDataError
from_dict
method could result in unhandled exceptionsv3.7
Compare Source
Changes
"omit"
serialization engine to skip the field during serializationref_prefix
parameter tobuild_json_schema
andJSONSchemaBuilder
to change reference prefixv3.6
Compare Source
Changes
v3.5
Compare Source
Changes
SerializationStrategy
(details)SerializationStrategy
methods by optionaluse_annotations=True
(details)__class_getitem__
methods will now be treated as generic types according to PEP 560v3.4
Compare Source
Changes
typing.DefaultDict
/collections.defaultdict
TypedDict
and genericNamedTuple
v3.3.1
Compare Source
Changes
UnresolvedTypeReferenceError
when postponed annotations were used and parent generic dataclass was defined in different module. See https://github.com/Fatal1ty/mashumaro/issues/90.v3.3
Compare Source
Changes
SerializableType
to simplify dealing with generic types (see updated documentation)TypeVarTuple
andUnpack
from PEP 646Tuple[()]
on python 3.11Tuple[T, ...]
from"Tuple[T, Ellipsis]"
to"Tuple[T, ...]"
v3.2
Compare Source
Changes
None
value fields on serialization to TOML format. See https://github.com/Fatal1ty/mashumaro/issues/85.omit_none
config optionomit_none
dialect optionNone
values to fields that can't beNone
according to their typev3.1.1
Compare Source
Changes
v3.1
Compare Source
Changes
typing.Self
andtyping_extensions.Self
from_dict
andto_dict
, methods in other mixins can also be compiled nowDataClassMessagePackMixin
:ADD_DIALECT_SUPPORT
config option when usingDataClassMessagePackMixin
from_msgpack
andto_msgpack
are now compiledDataClassORJSONMixin
to use a third-partyorjson
library that will handle supported data types by itselforjson_options
config option to change default options passing toorjson.dumps
methodto_jsonb
andto_json
haveorjson_options
keyword argument to override the default optionsDataClassTOMLMixin
v3.0.4
Compare Source
Changes
init=False
— they are skipped during deserialization now. See https://github.com/Fatal1ty/mashumaro/issues/82.v3.0.3
Compare Source
Changes
DataClassMessagePackMixin
. See https://github.com/Fatal1ty/mashumaro/issues/76.v3.0.2
Compare Source
Changes
v3.0.1
Compare Source
Changes
v3.0
Compare Source
Changes
typing.NewType
typing.Literal
typing_extensions.Literal
typing.Annotated
typing_extensions.Annotated
zoneinfo.ZoneInfo
typing_extensions.OrderedDict
on Python<3.7.2.SerializableType
generic classes.pass_through
object that can be used in serialization_strategy and serialize / deserialize options.Backward incompatible changes
msgpack
,pyyaml
dependencies toextras_require
(https://github.com/Fatal1ty/mashumaro/issues/7).DataClassJSONMixin
,DataClassMessagePackMixin
,DataClassYAMLMixin
tomashumaro.mixins.*
subpackages.use_bytes
,use_enum
,use_datetime
parameters fromDataClassDictMixin
methods.to_*
,from_*
methods of the serialization mixins in order to pass keyword arguments to underlyingto_dict
,from_dict
methods.You can find migration guide here: https://github.com/Fatal1ty/mashumaro/blob/master/docs/2to3.md.
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 Mend Renovate. View repository job log here.