fix(deps): update dependency pydantic to v2 (main)#2604
Merged
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2604 +/- ##
==========================================
+ Coverage 70.16% 70.30% +0.13%
==========================================
Files 147 148 +1
Lines 3999 4024 +25
==========================================
+ Hits 2806 2829 +23
- Misses 1193 1195 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Contributor
|
We need to wait for the next patch release, we are facing a bug with the union discriminator: Maybe this is our fix pydantic/pydantic#6340 |
d52a149 to
1ef3abe
Compare
Contributor
|
Blocked by pydantic/pydantic#6943 |
1ef3abe to
9d16803
Compare
2d2e8f1 to
60dc6a9
Compare
60dc6a9 to
a3f395d
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
018f19d to
a80a221
Compare
a80a221 to
202afd2
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:
>=1.7.4,<1.11->>=1.7.4,<2.6Release Notes
pydantic/pydantic (pydantic)
v2.5.3: 2023-12-22Compare Source
v2.5.3 (2023-12-22)
GitHub release
What's Changed
Packaging
pydantic-coreto 2.14.6Fixes
Full Changelog: pydantic/pydantic@v2.5.2...v2.5.3/
v2.5.2: 2023-11-22Compare Source
v2.5.2 (2023-11-22)
GitHub release
What's Changed
Packaging
pydantic-coreto 2.14.5New Features
ConfigDict.ser_json_inf_nanby @davidhewitt in #8159Fixes
Literalfrom JSON keys when used asdictkey by @sydney-runkle in pydantic/pydantic-core#1075custom_initon members ofUnionby @sydney-runkle in pydantic/pydantic-core#1076JsonValueboolserialization by @sydney-runkle in #8190LiteralinUnions by @sydney-runkle in pydantic/pydantic-core#1089v2.5.1Compare Source
GitHub release
What's Changed
Packaging
Fixes
ValidateCallWrappererror when creating a model which has a @validate_call wrapped field annotation by @sydney-runkle in #8110v2.5.0Compare Source
GitHub release
The code released in v2.5.0 is functionally identical to that of v2.5.0b1.
What's Changed
Packaging
pyright==1.1.335by @Viicos in #8075New Features
ValidationErrorerrors by @adriangb in #7806__doc__argument increate_model()by @chris-spann in #7863regex_engineflag - meaning you can use with the Rust or Python regex libraries in constraints by @utkini in #7768ComputedFieldInfoby @alexmojaki in #7889ruffformatter by @Luca-Blight in #7930validation_error_causeto config by @zakstucke in #7626CallableDiscriminatorandTagby @dmontagu in #7983CallableDiscriminatorrenamed toDiscriminatorby @dmontagu in #8047examplesandjson_schema_extrato@computed_fieldby @alexmojaki in #8013JsonValuetype by @dmontagu in #7998stras argument toDiscriminatorby @dmontagu in #8047SchemaSerializer.__reduce__method to enable pickle serialization by @edoakes in pydantic/pydantic-core#1006Changes
ultra_strictwith new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by @davidhewitt in pydantic/pydantic-core#867extra='allow'by @sydney-runkle in #7683Enumtypes with no cases by @sydney-runkle in #7927GenericbeforeBaseModelby @alexmojaki in #7891Performance
jiterby @samuelcolvin in pydantic/pydantic-core#974__getattr__for all package imports, improve import time by @samuelcolvin in #7947Fixes
mypyissue with subclasses ofRootModelby @sydney-runkle in #7677FieldInfowhen a forward ref gets evaluated by @dmontagu in #7698SecretStrfrom JSON (regression in v2.4) by @sydney-runkle in #7729defer_buildbehavior withTypeAdapterby @sydney-runkle in #7736mypyversions by @dmontagu in #7742TypeVarhandling when default is not set by @pmmmwh in #7719strictonEnumtype fields by @sydney-runkle in #7761weakref.refinstead of subclassing to fixcloudpickleserialization by @edoakes in #7780model_post_initin subclasses by @alexmojaki in #7775json_schema_extraby @alexmojaki in #7803strictspecification forUUIDtypes by @sydney-runkle in #7865pydantic.Field(kw_only=True)with inherited dataclasses by @PrettyWood in #7827validate_calldecorator for methods in classes with__slots__by @sydney-runkle in #7883dataclasses.fielddefault by @hramezani in #7898importlib_metadataon python 3.7 by @sydney-runkle in #7904|operator (Union) in PydanticRecursiveRef by @alexmojaki in #7892display_as_typeforTypeAliasTypein python 3.12 by @dmontagu in #7929NotRequiredgenerics inTypedDictby @sydney-runkle in #7932TypeAliasTypespecifications produce different schema definitions by @alexdrydew in #7893PrivateAttris passed fromAnnotateddefault position by @tabassco in #8004classmethodinstead ofclassmethod[Any, Any, Any]by @Mr-Pepe in #7979Optionalfield withvalidate_defaultonly performing one field validation by @sydney-runkle in pydantic/pydantic-core#1002definition-refbug withDictkeys by @sydney-runkle in pydantic/pydantic-core#1014booltypes withcoerce_numbers_to_str=Trueby @sydney-runkle in pydantic/pydantic-core#1017NaNin float and decimal constraints by @davidhewitt in pydantic/pydantic-core#1037lax_strandlax_intsupport for enum values not inherited from str/int by @michaelhly in pydantic/pydantic-core#1015UnionofListtypes by @sydney-runkle in pydantic/pydantic-core#1039max_digitsanddecimalsto pass if normalized or non-normalized input is valid by @sydney-runkle in pydantic/pydantic-core#1049ValidationErrormessages by @Iipin in pydantic/pydantic-core#1050'-'asdatetimeinput by @davidhewitt in pydantic/speedate#52 & pydantic/pydantic-core#1060New Contributors
pydanticpydantic-corev2.4.2Compare Source
GitHub release
What's Changed
Fixes
models_json_schemafor generic models by @adriangb in #7654New Contributors
v2.4.1Compare Source
GitHub release
What's Changed
Packaging
Fixes
Anyby @adriangb in #7606v2.4.0Compare Source
GitHub release
What's Changed
Packaging
New Features
Base64Urltypes by @dmontagu in #7286numbertostrcoercion by @lig in #7508field_nameanddatain all validators if there is data and a field name by @samuelcolvin in #7542BaseModel.model_validate_stringsandTypeAdapter.validate_stringsby @hramezani in #7552pluginsexperimental implementation by @lig @samuelcolvin and @Kludex in #6820Changes
model_post_initin subclass with private attrs by @Viicos in #7302Extraas deprecated by @disrupted in #7299EncodedStra dataclass by @Kludex in #7396annotated_handlersto be public by @samuelcolvin in #7569Performance
CoreSchemaby @adriangb in #7523CoreSchemawalking by @adriangb in #7528dict.getanddict.setdefaultwith more verbose versions inCoreSchemabuilding hot paths by @adriangb in #7536CoreSchemadiscovery by @adriangb in #7535CoreSchemavalidation for faster startup times by @adriangb in #7565Fixes
TypedDictfrom grandparent classes by @dmontagu in #7272strictconfig overridable in field for Path by @hramezani in #7281ser_json_<timedelta|bytes>on default inGenerateJsonSchemaby @Kludex in #7269SkipValidationto referenced schemas by @adriangb in #7381__get_pydantic_core_schema__signature by @hramezani in #7415TypeAdapter) by @sydney-runkle in #7435TypeErroronmodel_validatorinwrapmode by @pmmmwh in #7496reprwork for instances that failed initialization when handlingValidationErrors by @dmontagu in #7439UUIDvalues havingUUID.version=Noneby @lig in #7566__iter__returning privatecached_propertyinfo by @sydney-runkle in #7570New Contributors
v2.3.0Compare Source
GitHub release
Field(..., exclude: bool)docs by @samuelcolvin in #7214Base64StrandBase64Bytesby @Kludex in #7192config.defer_buildfor serialization first cases by @samuelcolvin in #7024validators.mdto correctvalidate_defaultkwarg by @lmmx in #7229tzinfo.fromutcmethod forTzInfoinpydantic-coreby @lig in #7019__get_validators__by @hramezani in #7197v2.2.1Compare Source
GitHub release
xfailing test for root model extra stopxfailing by @dmontagu in #6937v2.2.0Compare Source
GitHub release
Field.includeby @hramezani in #6852Pathfields by @samuelcolvin in #6903ForwardRefwrapper for py 3.10.0 (shim until bpo-45166) by @randomir in #6919mainbranch for badge links by @Viicos in #6925ser_json_bytesregarding base64 encoding by @Viicos in #7052@validate_callto work on async methods by @adriangb in #7046SettingsandSettingsConfigDictby @JeanArhancet in #7002short_versionand use it in links by @hramezani in #7115RootModelby @Kludex in #7113Field.excludeby @Viicos in #7086validate_assignmentto useField.frozenby @Viicos in #7103_core_utilsby @samuelcolvin in #7040round_tripin Json type documentation by @jc-louis in #7137v2.1.1Compare Source
GitHub release
v2.1.0Compare Source
GitHub release
StringConstraintsfor use as Annotated metadata by @adriangb in #6605help(BaseModelSubclass)raises errors by @hramezani in #6758@model_validator(mode="after")by @ljodal in #6753contentSchemakeyword for JSON schema by @dmontagu in #6715version_info()by @samuelcolvin in #6785SkipJsonSchemaannotation by @Kludex in #6653GenericModeltoMOVED_IN_V2by @adriangb in #6776docs/usage/types/custom.mdby @hramezani in #6803float->Decimalcoercion precision loss by @adriangb in #6810annotated_types.MaxLenvalidator for custom sequence types by @ImogenBits in #6809InstanceOfby @dmontagu in #6829json_encodersby @adriangb in #6811WeakValueDictionaryto fix generic memory leak by @dmontagu in #6681config.defer_buildto optionally make model building lazy by @samuelcolvin in #6823UUIDserialization to pydantic-core by @davidhewitt in #6850json_encodersdocs by @adriangb in #6848staticmethod/classmethodorder with validate_call by @dmontagu in #6686Configby @samuelcolvin in #6847Field.excludetakes priority over call-timeinclude/excludeby @hramezani in #6851GenerateSchemapublic by @adriangb in #6737v2.0.3Compare Source
GitHub release
Field.aliasbehavior in Pydantic V2 by @hramezani in #6508alias_priorityby @tpdorsey in #6520Configuration
📅 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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.