pygrocy
pygrocy copied to clipboard
Update pydantic requirement from <1.11.0,>=1.8.2 to >=1.8.2,<2.5.0
Updates the requirements on pydantic to permit the latest version.
Release notes
Sourced from pydantic's releases.
v2.4.0 2023-09-25
What's Changed
Packaging
- Update pydantic-core to 2.10.0 by
@samuelcolvinin #7542New Features
- Add
Base64Urltypes by@dmontaguin #7286- Implement optional
numbertostrcoercion by@ligin #7508- Allow access to
field_nameanddatain all validators if there is data and a field name by@samuelcolvinin #7542- Add
BaseModel.model_validate_stringsandTypeAdapter.validate_stringsby@hramezaniin #7552- Add Pydantic
pluginsexperimental implementation by@lig@samuelcolvinand@Kludexin #6820Changes
- Do not override
model_post_initin subclass with private attrs by@Viicosin #7302- Make fields with defaults not required in the serialization schema by default by
@dmontaguin #7275- Mark
Extraas deprecated by@disruptedin #7299- Make
EncodedStra dataclass by@Kludexin #7396- Move
annotated_handlersto be public by@samuelcolvinin #7569Performance
- Simplify flattening and inlining of
CoreSchemaby@adriangbin #7523- Remove unused copies in
CoreSchemawalking by@adriangbin #7528- Add caches for collecting definitions and invalid schemas from a CoreSchema by
@adriangbin #7527- Eagerly resolve discriminated unions and cache cases where we can't by
@adriangbin #7529- Replace
dict.getanddict.setdefaultwith more verbose versions inCoreSchemabuilding hot paths by@adriangbin #7536- Cache invalid
CoreSchemadiscovery by@adriangbin #7535- Allow disabling
CoreSchemavalidation for faster startup times by@adriangbin #7565Fixes
- Fix config detection for
TypedDictfrom grandparent classes by@dmontaguin #7272- Fix hash function generation for frozen models with unusual MRO by
@dmontaguin #7274- Make
strictconfig overridable in field for Path by@hramezaniin #7281- Use
ser_json_<timedelta|bytes>on default inGenerateJsonSchemaby@Kludexin #7269- Adding a check that alias is validated as an identifier for Python by
@andree0in #7319- Raise an error when computed field overrides field by
@sydney-runklein #7346- Fix applying
SkipValidationto referenced schemas by@adriangbin #7381- Enforce behavior of private attributes having double leading underscore by
@ligin #7265- Standardize
__get_pydantic_core_schema__signature by@hramezaniin #7415- Fix generic dataclass fields mutation bug (when using
TypeAdapter) by@sydney-runklein #7435- Fix
TypeErroronmodel_validatorinwrapmode by@pmmmwhin #7496- Improve enum error message by
@hramezaniin #7506- Make
reprwork for instances that failed initialization when handlingValidationErrors by@dmontaguin #7439- Fixed a regular expression denial of service issue by limiting whitespaces by
@prodigysmlin #7360- Fix handling of
UUIDvalues havingUUID.version=Noneby@ligin #7566
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.4.0 (2023-09-22)
What's Changed
Packaging
- Update pydantic-core to 2.10.0 by
@samuelcolvinin #7542New Features
- Add
Base64Urltypes by@dmontaguin #7286- Implement optional
numbertostrcoercion by@ligin #7508- Allow access to
field_nameanddatain all validators if there is data and a field name by@samuelcolvinin #7542- Add
BaseModel.model_validate_stringsandTypeAdapter.validate_stringsby@hramezaniin #7552- Add Pydantic
pluginsexperimental implementation by@lig@samuelcolvinand@Kludexin #6820Changes
- Do not override
model_post_initin subclass with private attrs by@Viicosin #7302- Make fields with defaults not required in the serialization schema by default by
@dmontaguin #7275- Mark
Extraas deprecated by@disruptedin #7299- Make
EncodedStra dataclass by@Kludexin #7396- Move
annotated_handlersto be public by@samuelcolvinin #7569Performance
- Simplify flattening and inlining of
CoreSchemaby@adriangbin #7523- Remove unused copies in
CoreSchemawalking by@adriangbin #7528- Add caches for collecting definitions and invalid schemas from a CoreSchema by
@adriangbin #7527- Eagerly resolve discriminated unions and cache cases where we can't by
@adriangbin #7529- Replace
dict.getanddict.setdefaultwith more verbose versions inCoreSchemabuilding hot paths by@adriangbin #7536- Cache invalid
CoreSchemadiscovery by@adriangbin #7535- Allow disabling
CoreSchemavalidation for faster startup times by@adriangbin #7565Fixes
- Fix config detection for
TypedDictfrom grandparent classes by@dmontaguin #7272- Fix hash function generation for frozen models with unusual MRO by
@dmontaguin #7274- Make
strictconfig overridable in field for Path by@hramezaniin #7281- Use
ser_json_<timedelta|bytes>on default inGenerateJsonSchemaby@Kludexin #7269- Adding a check that alias is validated as an identifier for Python by
@andree0in #7319- Raise an error when computed field overrides field by
@sydney-runklein #7346- Fix applying
SkipValidationto referenced schemas by@adriangbin #7381- Enforce behavior of private attributes having double leading underscore by
@ligin #7265- Standardize
__get_pydantic_core_schema__signature by@hramezaniin #7415- Fix generic dataclass fields mutation bug (when using
TypeAdapter) by@sydney-runklein #7435- Fix
TypeErroronmodel_validatorinwrapmode by@pmmmwhin #7496- Improve enum error message by
@hramezaniin #7506
... (truncated)
Commits
1f59075fix unintentional drop of character in HISTORY (#7600)7183c3eaddingmkdocs_run_depsto docs (#7602)cd44ac1Add missing@Kludexmention to theHISTORY.md(#7603)6136b9aPrepare release 2.4.0 (#7568)389c074Revert unecessary regex change from e4393ae (#7599)4279fc5WIP fixing redirects (#7596)829af25Improvements to version info message (#7594)cc4b8c2Small improvements to import performance (#7590)0af0cc3revert plugin performance regression (#7589)0c760c0improve formatting of generated release notes (#7592)- 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)