chore(deps): update dependency pydantic to v2 #20
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.0
-><2.9
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
pydantic/pydantic (pydantic)
v2.8.2
Compare Source
GitHub release
What's Changed
Fixes
v2.8.1
Compare Source
GitHub release
What's Changed
Packaging
ruff
tov0.5.0
andpyright
tov1.1.369
by @sydney-runkle in #9801pydantic-core
tov2.20.1
,pydantic-extra-types
tov2.9.0
by @sydney-runkle in #9832Fixes
to_snake
from v2.7 -> v2.8 by @sydney-runkle in #9812v2.8.0
Compare Source
GitHub release
The code released in v2.8.0 is functionally identical to that of v2.8.0b1.
What's Changed
Packaging
v1.1.367
and add type checking tests for pipeline API by @adriangb in #9674pydantic.v1
stub tov1.10.17
by @sydney-runkle in #9707v2.8.0b1
by @sydney-runkle in #9741pydantic-core
tov2.20.0
by @sydney-runkle in #9745pdm
version used forpdm.lock
to v2.16.1 by @sydney-runkle in #9761ruff
v0.4.8
by @Viicos in #9585New Features
defer_build
forTypeAdapter
by @MarkusSintonen in #8939deprecated
field in json schema by @NeevCohen in #9298fail_fast
feature by @uriyyo in #9708ser_json_inf_nan='strings'
mode to produce valid JSON by @josh-newman in pydantic/pydantic-core#1307Changes
Annotated
field by @nix010 in #9170__validators__
values increate_model
by @sydney-runkle in #9697smart
union matching logic by @sydney-runkle in pydantic/pydantic-core#1322You can read more about our
smart
union matching logic here. In some cases, if the old behavioris desired, you can switch to
left-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by @misrasaurabh1 in #9653_get_all_json_refs()
by 34% inpydantic/json_schema.py
by @misrasaurabh1 in #9650is_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by @misrasaurabh1 in #9652to_snake()
by 27% inpydantic/alias_generators.py
by @misrasaurabh1 in #9747unwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by @misrasaurabh1 in #9727Fixes
__spec__.parent
with__package__
by @hramezani in #9331Sequence
type by @anesmemisevic in #9303_frame_depth
by @Viicos in #9353ImportString
json schema compatible by @amitschang in #9344PrivateAttr
) from__init__
signature in type checkers by @idan22moral in #9293TypeVar
defaults robust to the CPythonPEP-696
implementation by @AlexWaygood in #9426PlainSerializer
with builtin types by @Viicos in #9450strict
specification forStringConstraint(strict=False)
by @vbmendes in #9476Self
where possible by @Viicos in #9479RootModel.model_construct
signature in themypy
plugin by @Viicos in #9480validation_context
by @OhioDschungel6 in #9508dump_json
/dump_python
by @alexcouper in #9495Field()
constructor by @bjmc in #9484TypeAdapter
by @Viicos in #9570__setstate__
of BaseModel by @anhpham1509 in #9584PEP 746
by @adriangb in #9587TypeVar
fields by @dmontagu in #9606regex
flags in validation and json schema by @sydney-runkle in #9591IpvAnyAddress
by @sydney-runkle in #9640__pydantic_extra__
by @dmontagu in #9659Optional[Decimal]
by @lazyhope in #9754validate_call
type params fix by @sydney-runkle in #9760re.Pattern
object in regex patterns to allow for regex flags by @sydney-runkle in pydantic/pydantic-core#1318New Contributors
v2.7.4
Compare Source
Github release
What's Changed
Packaging
pydantic.v1
tov1.10.16
reference by @sydney-runkle in #9639Fixes
recursive_guard
as kwarg inFutureRef._evaluate
by @vfazio in #9612v2.7.3
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.4
by @sydney-runkle in #9550Fixes
v2.7.2
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.3
by @sydney-runkle in #9515Fixes
__spec__.parent
with__package__
by @hramezani in #9331int
s with leading unary minus by @RajatRajdeep in pydantic/pydantic-core#1291str
subclass validation for enums by @sydney-runkle in pydantic/pydantic-core#1273BigInt
s inLiteral
s andEnum
s by @samuelcolvin in pydantic/pydantic-core#1297str
subclass as input by @davidhewitt in pydantic/pydantic-core#1296v2.7.1
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.2
by @sydney-runkle in #9307New Features
Changes
…
by @LouisGobert in #9214Fixes
validation_alias
behavior withmodel_construct
forAliasChoices
andAliasPath
by @sydney-runkle in #9223typing.Literal
and import it outside the TYPE_CHECKING block by @frost-nzcr4 in #9232Secret
serialization schema, applicable for unions by @sydney-runkle in #9240strict
application tofunction-after
withuse_enum_values
by @sydney-runkle in #9279model_construct
on a class which definesmodel_post_init
fails withAttributeError
by @babygrimes in #9168model_json_schema
with config types by @NeevCohen in #9287int
by @samuelcolvin in pydantic/pydantic-core#1269int
s with leading unary plus by @cknv in pydantic/pydantic-core#1272extra != 'ignore'
andfrom_attributes=True
by @davidhewitt in pydantic/pydantic-core#1276Enum
'smissing
function asValidationError
by @sydney-runkle in pydantic/pydantic-core#1274Iterable
validation by @davidhewitt in pydantic/pydantic-core#1271New Contributors
v2.7.0
Compare Source
GitHub release
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
pyproject.toml
sections by @Viicos in #8899pydantic-core
tov2.18.1
by @sydney-runkle in #9211jiter
v0.2.0
by @samuelcolvin in pydantic/pydantic-core#1250New Features
FieldInfo.description
by @Viicos in #6563with_config
decorator to comply with typing spec by @Viicos in #8611ByteSize.human_readable
by @jks15satoshi in #8706Secret
base type by @conradogarciaberrotaran in #8519Sphinx
inventories for cross references in docs by @Viicos in #8682deprecated
fields by @Viicos in #8237field_serializer('*')
by @ornariece in #9001model_config
is defined as a model property by @alexeyt101 in #9004create_model()
to supporttyping.Annotated
as input by @wannieman98 in #8947ClickhouseDsn
support by @solidguy7 in #9062re.Pattern[str]
topattern
field by @jag-k in #9053serialize_as_any
runtime setting by @sydney-runkle in #8830typing.Self
by @Youssefares in #9023context
to serialization by @ornariece in #8965Finalized in v2.7.0, rather than v2.7.0b1:
warnings
parameter for serialization utilities to allow raising a warning by @Lance-Drane in #9166Changes
model_construct
behavior withextra
by @sydney-runkle in #8807RootModel
subclasses by @sydney-runkle in #8857PEP570
syntax by @Viicos in #8940enum
andtype
to the JSON schema for single item literals by @dmontagu in #8944update_json_schema
internal function by @sydney-runkle in #9125Performance
enum
validator improvements by @samuelcolvin in #9045enum
validation and serialization to Rust by @samuelcolvin in #9064aarch64
(Note: SIMD on x86 will be implemented in a future release) by @samuelcolvin in in pydantic/jiter#65Cow<str>
fromjiter
by @davidhewitt in pydantic/pydantic-core#1231Fixes
Sequence
s by @sydney-runkle in #8614__qualname__
by @anci3ntr0ck in #8642__pydantic_extra__
annotation being a string or inherited by @alexmojaki in #8659NameEmail
by @Holi0317 in #8650BaseModel
by @bluenote10 in #8651mypy
plugin andno_strict_optional = True
by @dmontagu in #8666ByteSize
errortype
change by @sydney-runkle in #8681__pydantic_config__
ignored for TypeDict by @13sin in #8734pytest v8.0.0
due topytest.warns()
starting to work insidepytest.raises()
by @mgorny in #8678is_valid_field
from 1.x formypy
plugin by @DanielNoord in #8738mypy
strict equality flag by @dmontagu in #8799FieldInfo.__repr_args__
by @sydney-runkle in #8801BaseModel
type annotations to be resolvable bytyping.get_type_hints
by @devmonkey22 in #7680AliasGenerator
by @sydney-runkle in #8810date
->datetime
timezone assumption fix by @sydney-runkle in #8823ast.Str
by @Viicos in #8837deprecated
decorators by @Viicos in #8877NameEmail
if name includes an email address by @NeevCohen in #8860TypeAdapter
's typing compatible with special forms by @adriangb in #8923enum
s by @dmontagu in #8920model_json_schema
usage by @sydney-runkle in #8928mypy
plugin by @dmontagu in #9008PlainSerializer
usage with std type constructor by @sydney-runkle in #9031Model.__getattr__()
by @NeevCohen in #9082ClassVar
forward ref inherited from parent class by @alexmojaki in #9097True
by @andresliszt in #8977deque
when passed toSequence[blah blah blah]
by @sydney-runkle in #9128model_post_init
by @Viicos in #9134model_construct
withvalidation_alias
by @ornariece in #9144Literal
null
types by @bruno-f-cruz in #9135New Contributors
v2.6.4
Compare Source
GitHub release
What's Changed
Fixes
AliasGenerator
withcomputed_field
decorator by @sydney-runkle in #8806v2.6.3
Compare Source
GitHub release
What's Changed
Packaging
pydantic-settings
version in the docs by @hramezani in #8906Fixes
v2.6.2
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
2.16.3 by @sydney-runkle in #8879Fixes
v2.6.1
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
2.16.2 by @sydney-runkle in #8717Fixes
mypy
plugin andno_strict_optional = True
by @dmontagu in #8666ByteSize
errortype
change by @sydney-runkle in #8681Field
annotations in dataclasses by @sydney-runkle in #8679PlainValidator
by @sydney-runkle in #8710Union
by @davidhewitt in pydantic/pydantic-core#1174computed_field
JSON serializerexclude_none
behavior by @sydney-runkle in pydantic/pydantic-core#1187v2.6.0
Compare Source
GitHub release
The code released in v2.6.0 is practically identical to that of v2.6.0b1.
What's Changed
Packaging
email-validator
version >= 2.0 by @commonism in #6033pydantic-extra-types==2.4.1
by @yezz123 in #8478pyright==1.1.345
by @Viicos in #8453New Features
NatsDsn
by @ekeew in #6874ConfigDict.ser_json_inf_nan
by @davidhewitt in #8159types.OnErrorOmit
by @adriangb in #8222AliasGenerator
usage by @sydney-runkle in #8282yyyy-MM-DD
datetime parsing by @sydney-runkle in #8404ByteSize
class #8415 by @luca-matei in #8507ByteSize
by @geospackle in #8537eval_type_backport
to handle union operator and builtin generic subscripting in older Pythons by @alexmojaki in #8209dataclass
fieldsinit
by @dmontagu in #8552ValidationError
by @davidhewitt in pydantic/pydantic-core#1119Changes
self
inBaseModel
constructor, so no field name can ever conflict with it by @ariebovenberg in #8072@validate_call
return a function instead of a custom descriptor - fixes binding issue with inheritance and addsself/cls
argument to validation errors by @alexmojaki in #8268BaseModel
docstring from JSON schema description by @sydney-runkle in #8352classproperty
decorator formodel_computed_fields
by @Jocelyn-Gas in #8437Performance
int
extraction by @samuelcolvin in pydantic/pydantic-core#1155dataclass
serialization speedups by @samuelcolvin in pydantic/pydantic-core#1162HashMap
creation when looking up small JSON objects inLazyIndexMaps
by @samuelcolvin in pydantic/jiter#55Peak
with more efficientPeek
by @davidhewitt in pydantic/jiter#48Fixes
getattr
warning in deprecatedBaseConfig
by @tlambert03 in #7183model_fields
, not whole__dict__
by @alexmojaki in #7786mypy
plugin by @dmontagu in #7411mypy
error on untypedClassVar
by @vincent-hachin-wmx in #8138BaseModel.__eq__
instead of whole__dict__
by @QuentinSoubeyranAqemia in #7825strict
docstring inmodel_validate
method. by @LukeTonin in #8223computed_field
by @Viicos in #8227validate_call
decorator to be dynamically assigned to a class method by @jusexton in #8249unittest.mock
deprecation warnings by @ibleedicare in #8262JsonValue
contains subclassed primitive values by @jusexton in #8286mypy
error on free before validator (classmethod) by @sydney-runkle in #8285to_snake
conversion by @jevins09 in #8316ModelMetaclass.__prepare__
by @slanzmich in #8305config
specificatioConfiguration
📅 Schedule: Branch creation - "every weekday" in timezone UTC, 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 Renovate Bot.