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:
^22.1.0
->^23.0.0
Release Notes
python-attrs/cattrs (cattrs)
v23.2.3
Compare Source
Any
.(#453 #462)
(#465 #466)
(#445 #464)
(#445 #441)
v23.2.2
Compare Source
Any | None
.(#453)
v23.2.1
Compare Source
typing_extensions
import on Python 3.11.(#446 #447)
v23.2.0
Compare Source
init=False
by default. This change is potentially breaking for unstructuring.See here for instructions on how to restore the old behavior.
(#40 #395)
cattrs.gen.make_dict_structure_fn
and {py:func}cattrs.gen.typeddicts.make_dict_structure_fn
will use the values for thedetailed_validation
andforbid_extra_keys
parameters from the given converter by default now.If you're using these functions directly, the old behavior can be restored by passing in the desired values directly.
(#410 #411)
typing.Literal
to help guide structuring.See here for instructions on how to restore the old behavior.
(#391)
(#424)
union passthrough
strategy, enabling much richer union handling for preconfigured converters. Learn more here.use_class_methods
strategy. Learn more here.(#405)
omit
parameter of {py:func}cattrs.override
is now of typebool | None
(frombool
).None
is the new default and means to apply default cattrs handling to the attribute, which is to omit the attribute if it's marked asinit=False
, and keep it otherwise.(#331 #441)
date
to preconfigured converters.(#420)
datetime.date
s to the PyYAML preconfigured converter.(#393)
format_exception() <cattrs.v.format_exception>
parameter working for recursive calls to {py:func}transform_error <cattrs.transform_error>
.(#389)
(#322 #391)
(#376 #377)
Optional
(unions of one type andNone
).(#380 #381)
format_exception <cattrs.v.format_exception>
and {py:func}transform_error <cattrs.transform_error>
type annotations.cattrs._compat.is_typeddict
. The implementation is now simpler, and relies on fewer private implementation details fromtyping
and typing_extensions.(#384)
(#388)
(#398 #399)
loads' <cattrs.preconf.orjson.OrjsonConverter.loads>
type definition for the preconf orjson converter.(#400)
AttributeValidationNote <cattrs.AttributeValidationNote>
and {py:class}IterableValidationNote <cattrs.IterableValidationNote>
are now picklable.(#408)
Final
lists.(#412)
Annotated
types.(#418)
forbid_extra_keys
.(#402 #443)
(#416)
(#374 #436)
htmlview
andhtmllive
targets. (#442)main
branch commits are automatically deployed to Test PyPI.v23.1.2
Compare Source
typing_extensions
version bound. (#372)v23.1.1
Compare Source
typing_extensions
as a direct dependency on 3.10.(#369 #370)
v23.1.0
Compare Source
tagged_union
strategy.(#318 #317)
cattrs.transform_error
helper function for formatting validation exceptions. (258 342)typing.TypedDict
andtyping_extensions.TypedDict
.(#296 #364)
typing.Final
.(#340 #349)
override.struct_hook
andoverride.unstruct_hook
. Learn more here.(#326)
<>
) and pipe symbols (|
) in the name.(#319 #327)
pathlib.Path
is now supported by default.(#81)
cbor2
serialization library to thecattrs.preconf
package.cattrs.preconf
third-party libraries. (#337)unstruct_collection_overrides
inmake_converter
.(#350 #353)
include_subclasses
strategy.(#312)
typing_extensions.Annotated
when the python version is less than3.9
. (#366)deque
.(#355)
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.