edenai-apis
edenai-apis copied to clipboard
Bump pydantic from 2.0 to 2.6.0
Bumps pydantic from 2.0 to 2.6.0.
Release notes
Sourced from pydantic's releases.
v2.6.0 2024-01-29
v2.6.0 (2024-01-29)
The code released in v2.6.0 is practically identical to that of v2.6.0b1.
What's Changed
Packaging
- Check for
email-validator
version >= 2.0 by@commonism
in #6033- Upgrade
ruff
target version to Python 3.8 by@Elkiwa
in #8341- Update to
pydantic-extra-types==2.4.1
by@yezz123
in #8478- Update to
pyright==1.1.345
by@Viicos
in #8453- Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog here
New Features
- Add
NatsDsn
by@ekeew
in #6874- Add
ConfigDict.ser_json_inf_nan
by@davidhewitt
in #8159- Add
types.OnErrorOmit
by@adriangb
in #8222- Support
AliasGenerator
usage by@sydney-runkle
in #8282- Add Pydantic People Page to docs by
@sydney-runkle
in #8345- Support
yyyy-MM-DD
datetime parsing by@sydney-runkle
in #8404- Added bits conversions to the
ByteSize
class #8415 by@luca-matei
in #8507- Enable json schema creation with type
ByteSize
by@geospackle
in #8537- Add
eval_type_backport
to handle union operator and builtin generic subscripting in older Pythons by@alexmojaki
in #8209- Add support for
dataclass
fieldsinit
by@dmontagu
in #8552- Implement pickling for
ValidationError
by@davidhewitt
in pydantic/pydantic-core#1119- Add unified tuple validator that can handle "variadic" tuples via PEP-646 by
@dmontagu
in pydantic/pydantic-core#865Changes
- Drop Python3.7 support by
@hramezani
in #7188- Drop Python 3.7, and PyPy 3.7 and 3.8 by
@davidhewitt
in pydantic/pydantic-core#1129- Use positional-only
self
inBaseModel
constructor, so no field name can ever conflict with it by@ariebovenberg
in #8072- Make
@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 #8268- Exclude
BaseModel
docstring from JSON schema description by@sydney-runkle
in #8352- Introducing
classproperty
decorator formodel_computed_fields
by@Jocelyn-Gas
in #8437- Explicitly raise an error if field names clashes with types by
@Viicos
in #8243- Use stricter serializer for unions of simple types by
@alexdrydew
pydantic/pydantic-core#1132Performance
- Add Codspeed profiling Actions workflow by
@lambertsbennett
in #8054- Improve
int
extraction by@samuelcolvin
in pydantic/pydantic-core#1155- Improve performance of recursion guard by
@samuelcolvin
in pydantic/pydantic-core#1156dataclass
serialization speedups by@samuelcolvin
in pydantic/pydantic-core#1162- Avoid
HashMap
creation when looking up small JSON objects inLazyIndexMaps
by@samuelcolvin
in pydantic/jiter#55
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.6.0 (2024-01-23)
The code released in v2.6.0 is practically identical to that of v2.6.0b1.
What's Changed
Packaging
- Check for
email-validator
version >= 2.0 by@commonism
in #6033- Upgrade `ruff`` target version to Python 3.8 by
@Elkiwa
in #8341- Update to
pydantic-extra-types==2.4.1
by@yezz123
in #8478- Update to
pyright==1.1.345
by@Viicos
in #8453- Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog here
New Features
- Add
NatsDsn
by@ekeew
in #6874- Add
ConfigDict.ser_json_inf_nan
by@davidhewitt
in #8159- Add
types.OnErrorOmit
by@adriangb
in #8222- Support
AliasGenerator
usage by@sydney-runkle
in #8282- Add Pydantic People Page to docs by
@sydney-runkle
in #8345- Support
yyyy-MM-DD
datetime parsing by@sydney-runkle
in #8404- Added bits conversions to the
ByteSize
class #8415 by@luca-matei
in #8507- Enable json schema creation with type
ByteSize
by@geospackle
in #8537- Add
eval_type_backport
to handle union operator and builtin generic subscripting in older Pythons by@alexmojaki
in #8209- Add support for
dataclass
fieldsinit
by@dmontagu
in #8552- Implement pickling for
ValidationError
by@davidhewitt
in pydantic/pydantic-core#1119- Add unified tuple validator that can handle "variadic" tuples via PEP-646 by
@dmontagu
in pydantic/pydantic-core#865Changes
- Drop Python3.7 support by
@hramezani
in #7188- Drop Python 3.7, and PyPy 3.7 and 3.8 by
@davidhewitt
in pydantic/pydantic-core#1129- Use positional-only
self
inBaseModel
constructor, so no field name can ever conflict with it by@ariebovenberg
in #8072- Make
@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 #8268- Exclude
BaseModel
docstring from JSON schema description by@sydney-runkle
in #8352- Introducing
classproperty
decorator formodel_computed_fields
by@Jocelyn-Gas
in #8437- Explicitly raise an error if field names clashes with types by
@Viicos
in #8243- Use stricter serializer for unions of simple types by
@alexdrydew
pydantic/pydantic-core#1132Performance
- Add Codspeed profiling Actions workflow by
@lambertsbennett
in #8054- Improve
int
extraction by@samuelcolvin
in pydantic/pydantic-core#1155- Improve performance of recursion guard by
@samuelcolvin
in pydantic/pydantic-core#1156dataclass
serialization speedups by@samuelcolvin
in pydantic/pydantic-core#1162- Avoid
HashMap
creation when looking up small JSON objects inLazyIndexMaps
by@samuelcolvin
in pydantic/jiter#55- use hashbrown to speedup python string caching by
@davidhewitt
in pydantic/jiter#51
... (truncated)
Commits
3257fa3
Use pydantic-settings 2.1 docs (#8636)3e87125
Prep for 2.6 release (#8612)b2aa36a
Tweak ordering of definitions in generated schemas (#8583)5d6840f
Add examples forfunctional_serializers
in API docs (#8546)e131d53
Prep for 2.6.0b1 Release (#8589)a2a4281
Add support for dataclass fields init (#8552)48d0df4
Fix ordering bug of PlainValidator annotation #8512 (#8567)8e9b107
Bumppydantic-core
to 2.16.1, various other bumps (#8578)2171b20
Refactor signature generation for simplicity (#8572)8060fa1
Add eval_type_backport to handle union operator and builtin generic subscript...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)