slack-machine
slack-machine copied to clipboard
chore(deps): bump pydantic from 2.7.4 to 2.8.0
Bumps pydantic from 2.7.4 to 2.8.0.
Release notes
Sourced from pydantic's releases.
v2.8.0 (2024-07-01)
The code released in
v2.8.0
is functionally identical to that ofv2.8.0b1
.Check out our blog post to learn more about the release highlights!
What's Changed
Packaging
- Update citation version automatically with new releases by
@sydney-runkle
in #9673- Bump pyright to
v1.1.367
and add type checking tests for pipeline API by@adriangb
in #9674- Update
pydantic.v1
stub tov1.10.17
by@sydney-runkle
in #9707- General package updates to prep for
v2.8.0b1
by@sydney-runkle
in #9741- Bump
pydantic-core
tov2.20.0
by@sydney-runkle
in #9745- Add support for Python 3.13 by
@sydney-runkle
in #9743- Update
pdm
version used forpdm.lock
tov2.16.1
by@sydney-runkle
in #9761- Update to
ruff
v0.4.8
by@Viicos
in #9585New Features
- Experimental: support
defer_build
forTypeAdapter
by@MarkusSintonen
in #8939- Implement
deprecated
field in json schema by@NeevCohen
in #9298- Experimental: Add pipeline API by
@adriangb
in #9459- Add support for programmatic title generation by
@NeevCohen
in #9183- Implement
fail_fast
feature by@uriyyo
in #9708- Add
ser_json_inf_nan='strings'
mode to produce valid JSON by@josh-newman
in pydantic/pydantic-core#1307Changes
- Add warning when "alias" is set in ignored
Annotated
field by@nix010
in #9170- Support serialization of some serializable defaults in JSON schema by
@sydney-runkle
in #9624- Relax type specification for
__validators__
values increate_model
by@sydney-runkle
in #9697- Breaking Change: Improve
smart
union matching logic by@sydney-runkle
in pydantic/pydantic-core#1322 You can read more about oursmart
union matching logic here. In some cases, if the old behavior is desired, you can switch toleft-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
- ⚡️ Speed up
_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by@misrasaurabh1
in #9653- ⚡️ Speed up
_get_all_json_refs()
by 34% inpydantic/json_schema.py
by@misrasaurabh1
in #9650- ⚡️ Speed up
is_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by@misrasaurabh1
in #9652- ⚡️ Speed up
to_snake()
by 27% inpydantic/alias_generators.py
by@misrasaurabh1
in #9747- ⚡️ Speed up
unwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by@misrasaurabh1
in #9727Fixes
- Replace
__spec__.parent
with__package__
by@hramezani
in #9331- Fix Outputted Model JSON Schema for
Sequence
type by@anesmemisevic
in #9303
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.8.0 (2024-07-01)
The code released in v2.8.0 is functionally identical to that of v2.8.0b1.
What's Changed
Packaging
- Update citation version automatically with new releases by
@sydney-runkle
in #9673- Bump pyright to
v1.1.367
and add type checking tests for pipeline API by@adriangb
in #9674- Update
pydantic.v1
stub tov1.10.17
by@sydney-runkle
in #9707- General package updates to prep for
v2.8.0b1
by@sydney-runkle
in #9741- Bump
pydantic-core
tov2.20.0
by@sydney-runkle
in #9745- Add support for Python 3.13 by
@sydney-runkle
in #9743- Update
pdm
version used forpdm.lock
to v2.16.1 by@sydney-runkle
in #9761- Update to
ruff
v0.4.8
by@Viicos
in #9585New Features
- Experimental: support
defer_build
forTypeAdapter
by@MarkusSintonen
in #8939- Implement
deprecated
field in json schema by@NeevCohen
in #9298- Experimental: Add pipeline API by
@adriangb
in #9459- Add support for programmatic title generation by
@NeevCohen
in #9183- Implement
fail_fast
feature by@uriyyo
in #9708- Add
ser_json_inf_nan='strings'
mode to produce valid JSON by@josh-newman
in pydantic/pydantic-core#1307Changes
- Add warning when "alias" is set in ignored
Annotated
field by@nix010
in #9170- Support serialization of some serializable defaults in JSON schema by
@sydney-runkle
in #9624- Relax type specification for
__validators__
values increate_model
by@sydney-runkle
in #9697- Breaking Change: Improve
smart
union matching logic by@sydney-runkle
in pydantic/pydantic-core#1322 You can read more about oursmart
union matching logic here. In some cases, if the old behavior is desired, you can switch toleft-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
- ⚡️ Speed up
_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by@misrasaurabh1
in #9653- ⚡️ Speed up
_get_all_json_refs()
by 34% inpydantic/json_schema.py
by@misrasaurabh1
in #9650- ⚡️ Speed up
is_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by@misrasaurabh1
in #9652- ⚡️ Speed up
to_snake()
by 27% inpydantic/alias_generators.py
by@misrasaurabh1
in #9747- ⚡️ Speed up
unwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by@misrasaurabh1
in #9727Fixes
- Replace
__spec__.parent
with__package__
by@hramezani
in #9331
... (truncated)
Commits
1609e2a
Prep for v2.8 release (#9806)411dfd8
👥 Update Pydantic People (#9803)e280663
Add Nested Model Field Validation Examples to Docs (#9735)a002e69
Fix Python version check for_eval_type
(#9781)e108fd1
Docs updates to prep for v2.8 (#9778)011d8b6
Fix documentation formatting (#9779)738b5d7
Add note about Pipeline API recommended usage (#9777)8a0f335
Document and testser_json_inf_nan='strings'
variant (#9771)764e148
Preparing for the v2.8.0b1 release! (#9776)fcd2010
validate_call
type params fix (#9760)- 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)