-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency pydantic to v2.5.2 - abandoned #475
Conversation
✅ Deploy Preview for fastapi-filter ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
d607bb5
to
c6f5da0
Compare
b7e434c
to
cac5e17
Compare
a62ea9a
to
a978153
Compare
a361002
to
381c6cb
Compare
381c6cb
to
9862ba9
Compare
c5bad2d
to
9a1b270
Compare
459b699
to
6aa1e5a
Compare
d0c5071
to
47974c8
Compare
47974c8
to
2a5b4bd
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #475 +/- ##
===========================================
- Coverage 100.00% 98.98% -1.02%
===========================================
Files 6 6
Lines 193 197 +4
===========================================
+ Hits 193 195 +2
- Misses 0 2 +2
|
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. |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
This PR contains the following updates:
2.3.0
->2.5.2
Release Notes
pydantic/pydantic (pydantic)
v2.5.2
: 2023-11-22Compare Source
v2.5.2 (2023-11-22)
GitHub release
What's Changed
Packaging
pydantic-core
to 2.14.5New Features
ConfigDict.ser_json_inf_nan
by @davidhewitt in #8159Fixes
Literal
from JSON keys when used asdict
key by @sydney-runkle in pydantic/pydantic-core#1075custom_init
on members ofUnion
by @sydney-runkle in pydantic/pydantic-core#1076JsonValue
bool
serialization by @sydney-runkle in #8190Literal
inUnion
s by @sydney-runkle in pydantic/pydantic-core#1089v2.5.1
Compare Source
GitHub release
What's Changed
Packaging
Fixes
ValidateCallWrapper
error when creating a model which has a @validate_call wrapped field annotation by @sydney-runkle in #8110v2.5.0
Compare 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.335
by @Viicos in #8075New Features
ValidationError
errors by @adriangb in #7806__doc__
argument increate_model()
by @chris-spann in #7863regex_engine
flag - meaning you can use with the Rust or Python regex libraries in constraints by @utkini in #7768ComputedFieldInfo
by @alexmojaki in #7889ruff
formatter by @Luca-Blight in #7930validation_error_cause
to config by @zakstucke in #7626CallableDiscriminator
andTag
by @dmontagu in #7983CallableDiscriminator
renamed toDiscriminator
by @dmontagu in #8047examples
andjson_schema_extra
to@computed_field
by @alexmojaki in #8013JsonValue
type by @dmontagu in #7998str
as argument toDiscriminator
by @dmontagu in #8047SchemaSerializer.__reduce__
method to enable pickle serialization by @edoakes in pydantic/pydantic-core#1006Changes
ultra_strict
with 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 #7683Enum
types with no cases by @sydney-runkle in #7927Generic
beforeBaseModel
by @alexmojaki in #7891Performance
jiter
by @samuelcolvin in pydantic/pydantic-core#974__getattr__
for all package imports, improve import time by @samuelcolvin in #7947Fixes
mypy
issue with subclasses ofRootModel
by @sydney-runkle in #7677FieldInfo
when a forward ref gets evaluated by @dmontagu in #7698SecretStr
from JSON (regression in v2.4) by @sydney-runkle in #7729defer_build
behavior withTypeAdapter
by @sydney-runkle in #7736mypy
versions by @dmontagu in #7742TypeVar
handling when default is not set by @pmmmwh in #7719strict
onEnum
type fields by @sydney-runkle in #7761weakref.ref
instead of subclassing to fixcloudpickle
serialization by @edoakes in #7780model_post_init
in subclasses by @alexmojaki in #7775json_schema_extra
by @alexmojaki in #7803strict
specification forUUID
types by @sydney-runkle in #7865pydantic.Field(kw_only=True)
with inherited dataclasses by @PrettyWood in #7827validate_call
decorator for methods in classes with__slots__
by @sydney-runkle in #7883dataclasses.field
default by @hramezani in #7898importlib_metadata
on python 3.7 by @sydney-runkle in #7904|
operator (Union) in PydanticRecursiveRef by @alexmojaki in #7892display_as_type
forTypeAliasType
in python 3.12 by @dmontagu in #7929NotRequired
generics inTypedDict
by @sydney-runkle in #7932TypeAliasType
specifications produce different schema definitions by @alexdrydew in #7893PrivateAttr
is passed fromAnnotated
default position by @tabassco in #8004classmethod
instead ofclassmethod[Any, Any, Any]
by @Mr-Pepe in #7979Optional
field withvalidate_default
only performing one field validation by @sydney-runkle in pydantic/pydantic-core#1002definition-ref
bug withDict
keys by @sydney-runkle in pydantic/pydantic-core#1014bool
types withcoerce_numbers_to_str=True
by @sydney-runkle in pydantic/pydantic-core#1017NaN
in float and decimal constraints by @davidhewitt in pydantic/pydantic-core#1037lax_str
andlax_int
support for enum values not inherited from str/int by @michaelhly in pydantic/pydantic-core#1015Union
ofList
types by @sydney-runkle in pydantic/pydantic-core#1039max_digits
anddecimals
to pass if normalized or non-normalized input is valid by @sydney-runkle in pydantic/pydantic-core#1049ValidationError
messages by @Iipin in pydantic/pydantic-core#1050'-'
asdatetime
input by @davidhewitt in pydantic/speedate#52 & pydantic/pydantic-core#1060New Contributors
pydantic
pydantic-core
v2.4.2
Compare Source
GitHub release
What's Changed
Fixes
models_json_schema
for generic models by @adriangb in #7654New Contributors
v2.4.1
Compare Source
GitHub release
What's Changed
Packaging
Fixes
Any
by @adriangb in #7606v2.4.0
Compare Source
GitHub release
What's Changed
Packaging
New Features
Base64Url
types by @dmontagu in #7286number
tostr
coercion by @lig in #7508field_name
anddata
in all validators if there is data and a field name by @samuelcolvin in #7542BaseModel.model_validate_strings
andTypeAdapter.validate_strings
by @hramezani in #7552plugins
experimental implementation by @lig @samuelcolvin and @Kludex in #6820Changes
model_post_init
in subclass with private attrs by @Viicos in #7302Extra
as deprecated by @disrupted in #7299EncodedStr
a dataclass by @Kludex in #7396annotated_handlers
to be public by @samuelcolvin in #7569Performance
CoreSchema
by @adriangb in #7523CoreSchema
walking by @adriangb in #7528dict.get
anddict.setdefault
with more verbose versions inCoreSchema
building hot paths by @adriangb in #7536CoreSchema
discovery by @adriangb in #7535CoreSchema
validation for faster startup times by @adriangb in #7565Fixes
TypedDict
from grandparent classes by @dmontagu in #7272strict
config overridable in field for Path by @hramezani in #7281ser_json_<timedelta|bytes>
on default inGenerateJsonSchema
by @Kludex in #7269SkipValidation
to referenced schemas by @adriangb in #7381__get_pydantic_core_schema__
signature by @hramezani in #7415TypeAdapter
) by @sydney-runkle in #7435TypeError
onmodel_validator
inwrap
mode by @pmmmwh in #7496repr
work for instances that failed initialization when handlingValidationError
s by @dmontagu in #7439UUID
values havingUUID.version=None
by @lig in #7566__iter__
returning privatecached_property
info by @sydney-runkle in #7570New Contributors
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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.