-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix(deps): update dependency pydantic to v2.10.3 #662
base: main
Are you sure you want to change the base?
Conversation
Reviewer's Guide by SourceryThis PR updates the pydantic dependency from version 2.9.2 to 2.10.0. The update includes numerous new features, performance improvements, and bug fixes. The changes are primarily internal to the pydantic library and should not require any code changes unless using specific features that have been modified. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
b7b1ada
to
7e8ae71
Compare
7e8ae71
to
7af8db3
Compare
e8cdb97
to
7af8db3
Compare
This PR contains the following updates:
2.9.2
->2.10.3
Release Notes
pydantic/pydantic (pydantic)
v2.10.3
Compare Source
GitHub release
What's Changed
Fixes
defer_build
is set on Pydantic dataclasses by @Viicos in #10984dict
core schema keys by @Viicos in #10989PlainSerializer
andWrapSerializer
functions by @Viicos in #11008default_factory_takes_validated_data
property toFieldInfo
by @Viicos in #11034serialization
mode by @sydney-runkle in #11035v2.10.2
Compare Source
GitHub release
What's Changed
Fixes
Secret
types andUrl
types by @sydney-runkle in #10947Field.default
to be compatible with Python 3.8 and 3.9 by @Viicos in #10972BaseModel.__replace__
definition from type checkers by @Viicos in 10979v2.10.1
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
version tov2.27.1
by @sydney-runkle in #10938Fixes
TypeAdapter
by @Viicos in #10893default_factory
utils by @sydney-runkle in #10909model_fields
andmodel_computed_fields
by @sydney-runkle in #10911dataclass
es by @sydney-runkle in #10928globals
of the function when evaluating the return type of serializers andcomputed_field
s by @Viicos in #10929''
by @sydney-runkle in #10936python
mode serialization forcomplex
inference by @sydney-runkle in pydantic-core#1549New Contributors
v2.10.0
Compare Source
The code released in v2.10.0 is practically identical to that of v2.10.0b2.
GitHub release
See the v2.10 release blog post for the highlights!
What's Changed
Packaging
pydantic-core
tov2.27.0
by @sydney-runkle in #10825New Features
fractions.Fraction
by @sydney-runkle in #10318Hashable
for json validation by @sydney-runkle in #10324SocketPath
type forlinux
systems by @theunkn0wn1 in #10378examples
by @sydney-runkle in #10417defer_build
for Pydantic dataclasses by @Viicos in #10313TypedDict
to type hint variadic keyword arguments with@validate_call
by @Viicos in #10416protected_namespaces
by @sydney-runkle in #10522propertyNames
in JSON schema by @FlorianSW in #10478__replace__
protocol for Python 3.13+ support by @sydney-runkle in #10596sort
method for JSON schema generation by @sydney-runkle in #10595@validate_call
callable argument by @kc0506 in #10627experimental_allow_partial
support by @samuelcolvin in #10748ValidationError
andPydanticCustomError
by @Youssefares in pydantic/pydantic-core#1413trailing-strings
support toexperimental_allow_partial
by @sydney-runkle in #10825rebuild()
method forTypeAdapter
and simplifydefer_build
patterns by @sydney-runkle in #10537TypeAdapter
instance repr by @sydney-runkle in #10872Changes
SchemaGenerator
until interface is more stable by @sydney-runkle in #10303defer_build
onTypeAdapters
, removing experimental flag by @sydney-runkle in #10329mro
of generic subclass by @kc0506 in #10100b64decode
andb64encode
forBase64Bytes
type by @sydney-runkle in #10486@dataclass
decorator and with the__pydantic_config__
attribute by @sydney-runkle in #10406Ellipsis
(...) withField
by @Viicos in #10661Literal
s andEnums
by @Viicos in #10692Any
orNever
when replacing type variables by @Viicos in #10338base64
bytes by @bschoenmaeckers in pydantic/pydantic-core#1448Performance
CoreMetadata
refactor with an emphasis on documentation, schema build time performance, and reducing complexity by @sydney-runkle in #10675Fixes
computed_field
withfield_serializer
by @nix010 in #10390Predicate
issue inv2.9.0
by @sydney-runkle in #10321annotated-types
bound by @sydney-runkle in #10327tzdata
install requirement into optionaltimezone
dependency by @jakob-keller in #10331namedtuple
core schemas by @Viicos in #10337IncEx
type alias definition by @Viicos in #10339ModelMetaclass.mro
by @Viicos in #10372computed_field
s by @Viicos in #10391inspect.iscoroutinefunction
works on coroutines decorated with@validate_call
by @MovisLi in #10374NameError
when usingvalidate_call
with PEP 695 on a class by @kc0506 in #10380ZoneInfo
with various invalid types by @sydney-runkle in #10408PydanticUserError
on emptymodel_config
with annotations by @cdwilson in #10412_IncEx
type alias, only allowTrue
by @Viicos in #10414PlainValidator
by @Viicos in #10427json_schema_input_type
by @Viicos in #10439Representation
by @Viicos in #10480max_digits
anddecimal_places
) by @sydney-runkle in #10506__pydantic_core_schema__
from the current class during schema generation by @Viicos in #10518stacklevel
on deprecation warnings forBaseModel
by @sydney-runkle in #10520stacklevel
inBaseModel.__init__
by @Viicos in #10526ConfigWrapper.core_config
to take the title directly by @Viicos in #10562mode='python'
by @sydney-runkle in #10594Base64Etc
types by @sydney-runkle in #10584validate_call
ignoringField
inAnnotated
by @kc0506 in #10610Self
is invalid by @kc0506 in #10609core_schema.InvalidSchema
instead of metadata injection + checks by @sydney-runkle in #10523type
withtyping.Self
and type aliases by @kc0506 in #10621Field
andPrivateAttr
functions by @Viicos in #10651mypy
plugin implementation by @Viicos in #10669typing_extensions
variant ofTypeAliasType
by @Daraan in #10713BaseModel.model_copy()
by @Viicos in #10751isinstance
behavior for urls by @sydney-runkle in #10766cached_property
can be set on Pydantic models by @Viicos in #10774host_required
for URLs by @Viicos in pydantic/pydantic-core#1488coerce_numbers_to_str
enabled and string has invalid Unicode character by @andrey-berenda in pydantic/pydantic-core#1515complex
values inEnum
s by @changhc in pydantic/pydantic-core#1524_typing_extra
module by @Viicos in #10725bytearray
toTypeAdapter.validate_json
signature by @samuelcolvin in #10802Field
by @Viicos in #10816validate_call
by @sydney-runkle in #10807IncEx
type alias to be compatible with mypy by @Viicos in #10813__signature__
a lazy property, do not deepcopy defaults by @Viicos in #10818__signature__
lazy for dataclasses, too by @sydney-runkle in #10832AnyUrl
to preserve behavior from v2.9 by @sydney-runkle in #10856New 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.