pydantic-sqlalchemy
pydantic-sqlalchemy copied to clipboard
⬆ Update pydantic requirement from <2.0.0,>=1.5.1 to >=1.5.1,<3.0.0
Updates the requirements on pydantic to permit the latest version.
Release notes
Sourced from pydantic's releases.
v2.9.0 (2024-09-05)
The code released in v2.9.0 is practically identical to that of v2.9.0b2.
Check out our blog post to learn more about the release highlights!
What's Changed
Packaging
- Bump
rufftov0.5.0andpyrighttov1.1.369by@sydney-runklein #9801- Bump
pydantic-extra-typestov2.9.0by@sydney-runklein #9832- Support compatibility with
pdm v2.18.1by@Viicosin #10138- Bump
v1version stub tov1.10.18by@sydney-runklein #10214- Bump
pydantic-coretov2.23.2by@sydney-runklein #10311New Features
- Add support for
ZoneInfoby@Youssefaresin #9896- Add
Config.val_json_bytesby@josh-newmanin #9770- Add DSN for Snowflake by
@aditkumar72in #10128- Support
complexnumber by@changhcin #9654- Add support for
annotated_types.Notby@aditkumar72in #10210- Allow
WithJsonSchemato inject$refs w/httporhttpslinks by@dAIsySHEng1in #9863- Allow validators to customize validation JSON schema by
@Viicosin #10094- Support parametrized
PathLiketypes by@nix010in #9764- Add tagged union serializer that attempts to use
strorcallablediscriminators to select the correct serializer by@sydney-runklein in pydantic/pydantic-core#1397Changes
- Breaking Change: Merge
dicttypejson_schema_extraby@sydney-runklein #9792
- For more info (how to replicate old behavior) on this change, see here
- Refactor annotation injection for known (often generic) types by
@sydney-runklein #9979- Move annotation compatibility errors to validation phase by
@sydney-runklein #9999- Improve runtime errors for string constraints like
patternfor incompatible types by@sydney-runklein #10158- Remove
'allOf'JSON schema workarounds by@dpeacheyin #10029- Remove
typed_dict_clsdata fromCoreMetadataby@sydney-runklein #10180- Deprecate passing a dict to the
Examplesclass by@Viicosin #10181- Remove
initial_metadatafrom internal metadata construct by@sydney-runklein #10194- Use
re.Pattern.searchinstead ofre.Pattern.matchfor consistency withrustbehavior by@tinezin pydantic/pydantic-core#1368- Show value of wrongly typed data in
pydantic-coreserialization warning by@BoxyUwUin pydantic/pydantic-core#1377- Breaking Change: in
pydantic-core, changemetadatatype hint in core schemas fromAny->Dict[str, Any] | Noneby@sydney-runklein pydantic/pydantic-core#1411- Raise helpful warning when
selfisn't returned from model validator by@sydney-runklein #10255Performance
- Initial start at improving import times for modules, using caching primarily by
@sydney-runklein #10009- Using cached internal import for
BaseModelby@sydney-runklein #10013- Simplify internal generics logic - remove generator overhead by
@sydney-runklein #10059- Remove default module globals from types namespace by
@sydney-runklein #10123- Performance boost: skip caching parent namespaces in most cases by
@sydney-runklein #10113
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.9.0 (2024-09-05)
The code released in v2.9.0 is practically identical to that of v2.9.0b2.
What's Changed
Packaging
- Bump
rufftov0.5.0andpyrighttov1.1.369by@sydney-runklein #9801- Bump
pydantic-extra-typestov2.9.0by@sydney-runklein #9832- Support compatibility with
pdm v2.18.1by@Viicosin #10138- Bump
v1version stub tov1.10.18by@sydney-runklein #10214- Bump
pydantic-coretov2.23.2by@sydney-runklein #10311New Features
- Add support for
ZoneInfoby@Youssefaresin #9896- Add
Config.val_json_bytesby@josh-newmanin #9770- Add DSN for Snowflake by
@aditkumar72in #10128- Support
complexnumber by@changhcin #9654- Add support for
annotated_types.Notby@aditkumar72in #10210- Allow
WithJsonSchemato inject$refs w/httporhttpslinks by@dAIsySHEng1in #9863- Allow validators to customize validation JSON schema by
@Viicosin #10094- Support parametrized
PathLiketypes by@nix010in #9764- Add tagged union serializer that attempts to use
strorcallablediscriminators to select the correct serializer by@sydney-runklein in pydantic/pydantic-core#1397Changes
- Breaking Change: Merge
dicttypejson_schema_extraby@sydney-runklein #9792
- For more info (how to replicate old behavior) on this change, see here
- Refactor annotation injection for known (often generic) types by
@sydney-runklein #9979- Move annotation compatibility errors to validation phase by
@sydney-runklein #9999- Improve runtime errors for string constraints like
patternfor incompatible types by@sydney-runklein #10158- Remove
'allOf'JSON schema workarounds by@dpeacheyin #10029- Remove
typed_dict_clsdata fromCoreMetadataby@sydney-runklein #10180- Deprecate passing a dict to the
Examplesclass by@Viicosin #10181- Remove
initial_metadatafrom internal metadata construct by@sydney-runklein #10194- Use
re.Pattern.searchinstead ofre.Pattern.matchfor consistency withrustbehavior by@tinezin pydantic/pydantic-core#1368- Show value of wrongly typed data in
pydantic-coreserialization warning by@BoxyUwUin pydantic/pydantic-core#1377- Breaking Change: in
pydantic-core, changemetadatatype hint in core schemas fromAny->Dict[str, Any] | Noneby@sydney-runklein pydantic/pydantic-core#1411- Raise helpful warning when
selfisn't returned from model validator by@sydney-runklein #10255Performance
- Initial start at improving import times for modules, using caching primarily by
@sydney-runklein #10009- Using cached internal import for
BaseModelby@sydney-runklein #10013- Simplify internal generics logic - remove generator overhead by
@sydney-runklein #10059- Remove default module globals from types namespace by
@sydney-runklein #10123
... (truncated)
Commits
ed92d0aPrep for v2.9 release (#10311)eecde7bFix lifecycle docs formatting (#10309)447879bAdd schema generation benchmarks for models with custom serializers (#10290)91a4993Add link for complex docs (#10301)8a01cc8Respectschema_generatorconfig value inTypeAdapter(#10300)5c24abbEnsure__pydantic_complete__is set when rebuilding dataclasses (#10291)0a78494Try fix forcoveragewith hidden files (#10298)d7e8125Ensure coverage data artifact is correctly uploaded (#10292)c109563Support signature for wrap validators withoutinfo(#10277)0115f7bReformat + add some benchmarks for annotated validators (#10276)- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)