← Back to issue list

chore(deps): update dependency pydantic to v1.10.5

View original Github issue

Metadata

Project
charmcraft
Number
#1029
Type
pull request
State
closed
Author
renovate[bot]
Labels
—
Created
Updated
Closed

Current evaluation

Renovate’s Pydantic 1.9.0-to-1.10.5 update was closed unmerged and ignored because craft-parts needed separate compatibility changes first.

Resolution: closed stale

Reason: On 2023-03-01, @lengau said the update required separate changes for a craft-parts upgrade, so #1029 was abandoned without merge. Renovate then confirmed that Pydantic 1.10.5 would be ignored.

Evaluated by: mr-cal-bot

No scores available.

Issue body

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pydantic](https://togithub.com/pydantic/pydantic) | `==1.9.0` -> `==1.10.5` | [![age](https://badges.renovateapi.com/packages/pypi/pydantic/1.10.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pydantic/1.10.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pydantic/1.10.5/compatibility-slim/1.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pydantic/1.10.5/confidence-slim/1.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pydantic/pydantic</summary> ### [`v1.10.5`](https://togithub.com/pydantic/pydantic/releases/tag/v1.10.5): (2023-02-15) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.10.4...v1.10.5) - Fix broken parametrized bases handling with `GenericModel`s with complex sets of models, [#&#8203;5052](https://togithub.com/pydantic/pydantic/issues/5052) by [@&#8203;MarkusSintonen](https://togithub.com/MarkusSintonen) - Invalidate mypy cache if plugin config changes, [#&#8203;5007](https://togithub.com/pydantic/pydantic/issues/5007) by [@&#8203;cdce8p](https://togithub.com/cdce8p) - Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic, [#&#8203;4949](https://togithub.com/pydantic/pydantic/issues/4949) by [@&#8203;mbillingr](https://togithub.com/mbillingr) - Fix `X | Y` union syntax breaking `GenericModel`, [#&#8203;4146](https://togithub.com/pydantic/pydantic/issues/4146) by [@&#8203;thenx](https://togithub.com/thenx) - Switch coverage badge to show coverage for this branch/release, [#&#8203;5060](https://togithub.com/pydantic/pydantic/issues/5060) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) #### New Contributors - [@&#8203;thenx](https://togithub.com/thenx) made their first contribution in [https://github.com/pydantic/pydantic/pull/4977](https://togithub.com/pydantic/pydantic/pull/4977) - [@&#8203;mbillingr](https://togithub.com/mbillingr) made their first contribution in [https://github.com/pydantic/pydantic/pull/4963](https://togithub.com/pydantic/pydantic/pull/4963) - [@&#8203;MarkusSintonen](https://togithub.com/MarkusSintonen) made their first contribution in [https://github.com/pydantic/pydantic/pull/5052](https://togithub.com/pydantic/pydantic/pull/5052) **Full Changelog**: https://github.com/pydantic/pydantic/compare/v1.10.4...v1.10.5 ### [`v1.10.4`](https://togithub.com/pydantic/pydantic/releases/tag/v1.10.4): (2022-12-30) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.10.3...v1.10.4) - Change dependency to `typing-extensions>=4.2.0`, [#&#8203;4885](https://togithub.com/pydantic/pydantic/issues/4885) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) **Full Changelog**: https://github.com/pydantic/pydantic/compare/v1.10.3...v1.10.4 ### [`v1.10.3`](https://togithub.com/pydantic/pydantic/releases/tag/v1.10.3): (2022-12-29) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.10.2...v1.10.3) - fix parsing of custom root models, [#&#8203;4883](https://togithub.com/pydantic/pydantic/issues/4883) by [@&#8203;gou177](https://togithub.com/gou177) - fix: use dataclass proxy for frozen or empty dataclasses, [#&#8203;4878](https://togithub.com/pydantic/pydantic/issues/4878) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Fix `schema` and `schema_json` on models where a model instance is a one of default values, [#&#8203;4781](https://togithub.com/pydantic/pydantic/issues/4781) by [@&#8203;Bobronium](https://togithub.com/Bobronium) - Add Jina AI to sponsors on docs index page, [#&#8203;4767](https://togithub.com/pydantic/pydantic/issues/4767) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - fix: support assignment on `DataclassProxy`, [#&#8203;4695](https://togithub.com/pydantic/pydantic/issues/4695) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Add `postgresql+psycopg` as allowed scheme for `PostgreDsn` to make it usable with SQLAlchemy 2, [#&#8203;4689](https://togithub.com/pydantic/pydantic/issues/4689) by [@&#8203;morian](https://togithub.com/morian) - Allow dict schemas to have both `patternProperties` and `additionalProperties`, [#&#8203;4641](https://togithub.com/pydantic/pydantic/issues/4641) by [@&#8203;jparise](https://togithub.com/jparise) - Fixes error passing None for optional lists with `unique_items`, [#&#8203;4568](https://togithub.com/pydantic/pydantic/issues/4568) by [@&#8203;mfulgo](https://togithub.com/mfulgo) - Fix `GenericModel` with `Callable` param raising a `TypeError`, [#&#8203;4551](https://togithub.com/pydantic/pydantic/issues/4551) by [@&#8203;mfulgo](https://togithub.com/mfulgo) - Fix field regex with `StrictStr` type annotation, [#&#8203;4538](https://togithub.com/pydantic/pydantic/issues/4538) by [@&#8203;sisp](https://togithub.com/sisp) - Correct `dataclass_transform` keyword argument name from `field_descriptors` to `field_specifiers`, [#&#8203;4500](https://togithub.com/pydantic/pydantic/issues/4500) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - fix: avoid multiple calls of `__post_init__` when dataclasses are inherited, [#&#8203;4487](https://togithub.com/pydantic/pydantic/issues/4487) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Reduce the size of binary wheels, [#&#8203;2276](https://togithub.com/pydantic/pydantic/issues/2276) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) **Full Changelog**: https://github.com/pydantic/pydantic/compare/v1.10.2...v1.10.3 ### [`v1.10.2`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v1102-2022-09-05) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.10.1...v1.10.2) - **Revert Change:** Revert percent encoding of URL parts which was originally added in [#&#8203;4224](https://togithub.com/pydantic/pydantic/issues/4224), [#&#8203;4470](https://togithub.com/pydantic/pydantic/issues/4470) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Prevent long (length > `4_300`) strings/bytes as input to int fields, see [python/cpython#&#8203;95778](https://togithub.com/python/cpython/issues/95778) and [CVE-2020-10735](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735), [#&#8203;1477](https://togithub.com/pydantic/pydantic/issues/1477) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - fix: dataclass wrapper was not always called, [#&#8203;4477](https://togithub.com/pydantic/pydantic/issues/4477) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Use `tomllib` on Python 3.11 when parsing `mypy` configuration, [#&#8203;4476](https://togithub.com/pydantic/pydantic/issues/4476) by [@&#8203;hauntsaninja](https://togithub.com/hauntsaninja) - Basic fix of `GenericModel` cache to detect order of arguments in `Union` models, [#&#8203;4474](https://togithub.com/pydantic/pydantic/issues/4474) by [@&#8203;sveinugu](https://togithub.com/sveinugu) - Fix mypy plugin when using bare types like `list` and `dict` as `default_factory`, [#&#8203;4457](https://togithub.com/pydantic/pydantic/issues/4457) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) ### [`v1.10.1`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v1101-2022-08-31) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.10.0...v1.10.1) - Add `__hash__` method to `pydancic.color.Color` class, [#&#8203;4454](https://togithub.com/pydantic/pydantic/issues/4454) by [@&#8203;czaki](https://togithub.com/czaki) ### [`v1.10.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v1100-2022-08-30) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.9.2...v1.10.0) - Refactor the whole *pydantic* `dataclass` decorator to really act like its standard lib equivalent. It hence keeps `__eq__`, `__hash__`, ... and makes comparison with its non-validated version possible. It also fixes usage of `frozen` dataclasses in fields and usage of `default_factory` in nested dataclasses. The support of `Config.extra` has been added. Finally, config customization directly via a `dict` is now possible, [#&#8203;2557](https://togithub.com/pydantic/pydantic/issues/2557) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) <br/><br/> **BREAKING CHANGES:** - The `compiled` boolean (whether *pydantic* is compiled with cython) has been moved from `main.py` to `version.py` - Now that `Config.extra` is supported, `dataclass` ignores by default extra arguments (like `BaseModel`) - Fix PEP487 `__set_name__` protocol in `BaseModel` for PrivateAttrs, [#&#8203;4407](https://togithub.com/pydantic/pydantic/issues/4407) by [@&#8203;tlambert03](https://togithub.com/tlambert03) - Allow for custom parsing of environment variables via `parse_env_var` in `Config`, [#&#8203;4406](https://togithub.com/pydantic/pydantic/issues/4406) by [@&#8203;acmiyaguchi](https://togithub.com/acmiyaguchi) - Rename `master` to `main`, [#&#8203;4405](https://togithub.com/pydantic/pydantic/issues/4405) by [@&#8203;hramezani](https://togithub.com/hramezani) - Fix `StrictStr` does not raise `ValidationError` when `max_length` is present in `Field`, [#&#8203;4388](https://togithub.com/pydantic/pydantic/issues/4388) by [@&#8203;hramezani](https://togithub.com/hramezani) - Make `SecretStr` and `SecretBytes` hashable, [#&#8203;4387](https://togithub.com/pydantic/pydantic/issues/4387) by [@&#8203;chbndrhnns](https://togithub.com/chbndrhnns) - Fix `StrictBytes` does not raise `ValidationError` when `max_length` is present in `Field`, [#&#8203;4380](https://togithub.com/pydantic/pydantic/issues/4380) by [@&#8203;JeanArhancet](https://togithub.com/JeanArhancet) - Add support for bare `type`, [#&#8203;4375](https://togithub.com/pydantic/pydantic/issues/4375) by [@&#8203;hramezani](https://togithub.com/hramezani) - Support Python 3.11, including binaries for 3.11 in PyPI, [#&#8203;4374](https://togithub.com/pydantic/pydantic/issues/4374) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Add support for `re.Pattern`, [#&#8203;4366](https://togithub.com/pydantic/pydantic/issues/4366) by [@&#8203;hramezani](https://togithub.com/hramezani) - Fix `__post_init_post_parse__` is incorrectly passed keyword arguments when no `__post_init__` is defined, [#&#8203;4361](https://togithub.com/pydantic/pydantic/issues/4361) by [@&#8203;hramezani](https://togithub.com/hramezani) - Fix implicitly importing `ForwardRef` and `Callable` from `pydantic.typing` instead of `typing` and also expose `MappingIntStrAny`, [#&#8203;4358](https://togithub.com/pydantic/pydantic/issues/4358) by [@&#8203;aminalaee](https://togithub.com/aminalaee) - remove `Any` types from the `dataclass` decorator so it can be used with the `disallow_any_expr` mypy option, [#&#8203;4356](https://togithub.com/pydantic/pydantic/issues/4356) by [@&#8203;DetachHead](https://togithub.com/DetachHead) - moved repo to `pydantic/pydantic`, [#&#8203;4348](https://togithub.com/pydantic/pydantic/issues/4348) by [@&#8203;yezz123](https://togithub.com/yezz123) - fix "extra fields not permitted" error when dataclass with `Extra.forbid` is validated multiple times, [#&#8203;4343](https://togithub.com/pydantic/pydantic/issues/4343) by [@&#8203;detachhead](https://togithub.com/detachhead) - Add Python 3.9 and 3.10 examples to docs, [#&#8203;4339](https://togithub.com/pydantic/pydantic/issues/4339) by [@&#8203;Bobronium](https://togithub.com/Bobronium) - Discriminated union models now use `oneOf` instead of `anyOf` when generating OpenAPI schema definitions, [#&#8203;4335](https://togithub.com/pydantic/pydantic/issues/4335) by [@&#8203;MaxwellPayne](https://togithub.com/MaxwellPayne) - Allow type checkers to infer inner type of `Json` type. `Json[list[str]]` will be now inferred as `list[str]`, `Json[Any]` should be used instead of plain `Json`. Runtime behaviour is not changed, [#&#8203;4332](https://togithub.com/pydantic/pydantic/issues/4332) by [@&#8203;Bobronium](https://togithub.com/Bobronium) - Allow empty string aliases by using a `alias is not None` check, rather than `bool(alias)`, [#&#8203;4253](https://togithub.com/pydantic/pydantic/issues/4253) by [@&#8203;sergeytsaplin](https://togithub.com/sergeytsaplin) - Update `ForwardRef`s in `Field.outer_type_`, [#&#8203;4249](https://togithub.com/pydantic/pydantic/issues/4249) by [@&#8203;JacobHayes](https://togithub.com/JacobHayes) - The use of `__dataclass_transform__` has been replaced by `typing_extensions.dataclass_transform`, which is the preferred way to mark pydantic models as a dataclass under [PEP 681](https://peps.python.org/pep-0681/), [#&#8203;4241](https://togithub.com/pydantic/pydantic/issues/4241) by [@&#8203;multimeric](https://togithub.com/multimeric) - Use parent model's `Config` when validating nested `NamedTuple` fields, [#&#8203;4219](https://togithub.com/pydantic/pydantic/issues/4219) by [@&#8203;synek](https://togithub.com/synek) - Update `BaseModel.construct` to work with aliased Fields, [#&#8203;4192](https://togithub.com/pydantic/pydantic/issues/4192) by [@&#8203;kylebamos](https://togithub.com/kylebamos) - Catch certain raised errors in `smart_deepcopy` and revert to `deepcopy` if so, [#&#8203;4184](https://togithub.com/pydantic/pydantic/issues/4184) by [@&#8203;coneybeare](https://togithub.com/coneybeare) - Add `Config.anystr_upper` and `to_upper` kwarg to constr and conbytes, [#&#8203;4165](https://togithub.com/pydantic/pydantic/issues/4165) by [@&#8203;satheler](https://togithub.com/satheler) - Fix JSON schema for `set` and `frozenset` when they include default values, [#&#8203;4155](https://togithub.com/pydantic/pydantic/issues/4155) by [@&#8203;aminalaee](https://togithub.com/aminalaee) - Teach the mypy plugin that methods decorated by `@validator` are classmethods, [#&#8203;4102](https://togithub.com/pydantic/pydantic/issues/4102) by [@&#8203;DMRobertson](https://togithub.com/DMRobertson) - Improve mypy plugin's ability to detect required fields, [#&#8203;4086](https://togithub.com/pydantic/pydantic/issues/4086) by [@&#8203;richardxia](https://togithub.com/richardxia) - Support fields of type `Type[]` in schema, [#&#8203;4051](https://togithub.com/pydantic/pydantic/issues/4051) by [@&#8203;aminalaee](https://togithub.com/aminalaee) - Add `default` value in JSON Schema when `const=True`, [#&#8203;4031](https://togithub.com/pydantic/pydantic/issues/4031) by [@&#8203;aminalaee](https://togithub.com/aminalaee) - Adds reserved word check to signature generation logic, [#&#8203;4011](https://togithub.com/pydantic/pydantic/issues/4011) by [@&#8203;strue36](https://togithub.com/strue36) - Fix Json strategy failure for the complex nested field, [#&#8203;4005](https://togithub.com/pydantic/pydantic/issues/4005) by [@&#8203;sergiosim](https://togithub.com/sergiosim) - Add JSON-compatible float constraint `allow_inf_nan`, [#&#8203;3994](https://togithub.com/pydantic/pydantic/issues/3994) by [@&#8203;tiangolo](https://togithub.com/tiangolo) - Remove undefined behaviour when `env_prefix` had characters in common with `env_nested_delimiter`, [#&#8203;3975](https://togithub.com/pydantic/pydantic/issues/3975) by [@&#8203;arsenron](https://togithub.com/arsenron) - Support generics model with `create_model`, [#&#8203;3945](https://togithub.com/pydantic/pydantic/issues/3945) by [@&#8203;hot123s](https://togithub.com/hot123s) - allow submodels to overwrite extra field info, [#&#8203;3934](https://togithub.com/pydantic/pydantic/issues/3934) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Document and test structural pattern matching ([PEP 636](https://peps.python.org/pep-0636/)) on `BaseModel`, [#&#8203;3920](https://togithub.com/pydantic/pydantic/issues/3920) by [@&#8203;irgolic](https://togithub.com/irgolic) - Fix incorrect deserialization of python timedelta object to ISO 8601 for negative time deltas. Minus was serialized in incorrect place ("P-1DT23H59M59.888735S" instead of correct "-P1DT23H59M59.888735S"), [#&#8203;3899](https://togithub.com/pydantic/pydantic/issues/3899) by [@&#8203;07pepa](https://togithub.com/07pepa) - Fix validation of discriminated union fields with an alias when passing a model instance, [#&#8203;3846](https://togithub.com/pydantic/pydantic/issues/3846) by [@&#8203;chornsby](https://togithub.com/chornsby) - Add a CockroachDsn type to validate CockroachDB connection strings. The type supports the following schemes: `cockroachdb`, `cockroachdb+psycopg2` and `cockroachdb+asyncpg`, [#&#8203;3839](https://togithub.com/pydantic/pydantic/issues/3839) by [@&#8203;blubber](https://togithub.com/blubber) - Fix MyPy plugin to not override pre-existing `__init__` method in models, [#&#8203;3824](https://togithub.com/pydantic/pydantic/issues/3824) by [@&#8203;patrick91](https://togithub.com/patrick91) - Fix mypy version checking, [#&#8203;3783](https://togithub.com/pydantic/pydantic/issues/3783) by [@&#8203;KotlinIsland](https://togithub.com/KotlinIsland) - support overwriting dunder attributes of `BaseModel` instances, [#&#8203;3777](https://togithub.com/pydantic/pydantic/issues/3777) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - Added `ConstrainedDate` and `condate`, [#&#8203;3740](https://togithub.com/pydantic/pydantic/issues/3740) by [@&#8203;hottwaj](https://togithub.com/hottwaj) - Support `kw_only` in dataclasses, [#&#8203;3670](https://togithub.com/pydantic/pydantic/issues/3670) by [@&#8203;detachhead](https://togithub.com/detachhead) - Add comparison method for `Color` class, [#&#8203;3646](https://togithub.com/pydantic/pydantic/issues/3646) by [@&#8203;aminalaee](https://togithub.com/aminalaee) - Drop support for python3.6, associated cleanup, [#&#8203;3605](https://togithub.com/pydantic/pydantic/issues/3605) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - created new function `to_lower_camel()` for "non pascal case" camel case, [#&#8203;3463](https://togithub.com/pydantic/pydantic/issues/3463) by [@&#8203;schlerp](https://togithub.com/schlerp) - Add checks to `default` and `default_factory` arguments in Mypy plugin, [#&#8203;3430](https://togithub.com/pydantic/pydantic/issues/3430) by [@&#8203;klaa97](https://togithub.com/klaa97) - fix mangling of `inspect.signature` for `BaseModel`, [#&#8203;3413](https://togithub.com/pydantic/pydantic/issues/3413) by [@&#8203;fix-inspect-signature](https://togithub.com/fix-inspect-signature) - Adds the `SecretField` abstract class so that all the current and future secret fields like `SecretStr` and `SecretBytes` will derive from it, [#&#8203;3409](https://togithub.com/pydantic/pydantic/issues/3409) by [@&#8203;expobrain](https://togithub.com/expobrain) - Support multi hosts validation in `PostgresDsn`, [#&#8203;3337](https://togithub.com/pydantic/pydantic/issues/3337) by [@&#8203;rglsk](https://togithub.com/rglsk) - Fix parsing of very small numeric timedelta values, [#&#8203;3315](https://togithub.com/pydantic/pydantic/issues/3315) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Update `SecretsSettingsSource` to respect `config.case_sensitive`, [#&#8203;3273](https://togithub.com/pydantic/pydantic/issues/3273) by [@&#8203;JeanArhancet](https://togithub.com/JeanArhancet) - Add MongoDB network data source name (DSN) schema, [#&#8203;3229](https://togithub.com/pydantic/pydantic/issues/3229) by [@&#8203;snosratiershad](https://togithub.com/snosratiershad) - Add support for multiple dotenv files, [#&#8203;3222](https://togithub.com/pydantic/pydantic/issues/3222) by [@&#8203;rekyungmin](https://togithub.com/rekyungmin) - Raise an explicit `ConfigError` when multiple fields are incorrectly set for a single validator, [#&#8203;3215](https://togithub.com/pydantic/pydantic/issues/3215) by [@&#8203;SunsetOrange](https://togithub.com/SunsetOrange) - Allow ellipsis on `Field`s inside `Annotated` for `TypedDicts` required, [#&#8203;3133](https://togithub.com/pydantic/pydantic/issues/3133) by [@&#8203;ezegomez](https://togithub.com/ezegomez) - Catch overflow errors in `int_validator`, [#&#8203;3112](https://togithub.com/pydantic/pydantic/issues/3112) by [@&#8203;ojii](https://togithub.com/ojii) - Adds a `__rich_repr__` method to `Representation` class which enables pretty printing with [Rich](https://togithub.com/willmcgugan/rich), [#&#8203;3099](https://togithub.com/pydantic/pydantic/issues/3099) by [@&#8203;willmcgugan](https://togithub.com/willmcgugan) - Add percent encoding in `AnyUrl` and descendent types, [#&#8203;3061](https://togithub.com/pydantic/pydantic/issues/3061) by [@&#8203;FaresAhmedb](https://togithub.com/FaresAhmedb) - `validate_arguments` decorator now supports `alias`, [#&#8203;3019](https://togithub.com/pydantic/pydantic/issues/3019) by [@&#8203;MAD-py](https://togithub.com/MAD-py) - Avoid `__dict__` and `__weakref__` attributes in `AnyUrl` and IP address fields, [#&#8203;2890](https://togithub.com/pydantic/pydantic/issues/2890) by [@&#8203;nuno-andre](https://togithub.com/nuno-andre) - Add ability to use `Final` in a field type annotation, [#&#8203;2766](https://togithub.com/pydantic/pydantic/issues/2766) by [@&#8203;uriyyo](https://togithub.com/uriyyo) - Update requirement to `typing_extensions>=4.1.0` to guarantee `dataclass_transform` is available, [#&#8203;4424](https://togithub.com/pydantic/pydantic/issues/4424) by [@&#8203;commonism](https://togithub.com/commonism) - Add Explosion and AWS to main sponsors, [#&#8203;4413](https://togithub.com/pydantic/pydantic/issues/4413) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Update documentation for `copy_on_model_validation` to reflect recent changes, [#&#8203;4369](https://togithub.com/pydantic/pydantic/issues/4369) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Runtime warning if `__slots__` is passed to `create_model`, `__slots__` is then ignored, [#&#8203;4432](https://togithub.com/pydantic/pydantic/issues/4432) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Add type hints to `BaseSettings.Config` to avoid mypy errors, also correct mypy version compatibility notice in docs, [#&#8203;4450](https://togithub.com/pydantic/pydantic/issues/4450) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) ### [`v1.9.2`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v192-2022-08-11) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.9.1...v1.9.2) **Revert Breaking Change**: *v1.9.1* introduced a breaking change where model fields were deep copied by default, this release reverts the default behaviour to match *v1.9.0* and before, while also allow deep-copy behaviour via `copy_on_model_validation = 'deep'`. See [#&#8203;4092](https://togithub.com/pydantic/pydantic/issues/4092) for more information. - Allow for shallow copies of model fields, `Config.copy_on_model_validation` is now a str which must be `'none'`, `'deep'`, or `'shallow'` corresponding to not copying, deep copy & shallow copy; default `'shallow'`, [#&#8203;4093](https://togithub.com/pydantic/pydantic/issues/4093) by [@&#8203;timkpaine](https://togithub.com/timkpaine) ### [`v1.9.1`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v191-2022-05-19) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v1.9.0...v1.9.1) Thank you to pydantic's sponsors: [@&#8203;tiangolo](https://togithub.com/tiangolo), [@&#8203;stellargraph](https://togithub.com/stellargraph), [@&#8203;JonasKs](https://togithub.com/JonasKs), [@&#8203;grillazz](https://togithub.com/grillazz), [@&#8203;Mazyod](https://togithub.com/Mazyod), [@&#8203;kevinalh](https://togithub.com/kevinalh), [@&#8203;chdsbd](https://togithub.com/chdsbd), [@&#8203;povilasb](https://togithub.com/povilasb), [@&#8203;povilasb](https://togithub.com/povilasb), [@&#8203;jina-ai](https://togithub.com/jina-ai), [@&#8203;mainframeindustries](https://togithub.com/mainframeindustries), [@&#8203;robusta-dev](https://togithub.com/robusta-dev), [@&#8203;SendCloud](https://togithub.com/SendCloud), [@&#8203;rszamszur](https://togithub.com/rszamszur), [@&#8203;jodal](https://togithub.com/jodal), [@&#8203;hardbyte](https://togithub.com/hardbyte), [@&#8203;corleyma](https://togithub.com/corleyma), [@&#8203;daddycocoaman](https://togithub.com/daddycocoaman), [@&#8203;Rehket](https://togithub.com/Rehket), [@&#8203;jokull](https://togithub.com/jokull), [@&#8203;reillysiemens](https://togithub.com/reillysiemens), [@&#8203;westonsteimel](https://togithub.com/westonsteimel), [@&#8203;primer-io](https://togithub.com/primer-io), [@&#8203;koxudaxi](https://togithub.com/koxudaxi), [@&#8203;browniebroke](https://togithub.com/browniebroke), [@&#8203;stradivari96](https://togithub.com/stradivari96), [@&#8203;adriangb](https://togithub.com/adriangb), [@&#8203;kamalgill](https://togithub.com/kamalgill), [@&#8203;jqueguiner](https://togithub.com/jqueguiner), [@&#8203;dev-zero](https://togithub.com/dev-zero), [@&#8203;datarootsio](https://togithub.com/datarootsio), [@&#8203;RedCarpetUp](https://togithub.com/RedCarpetUp) for their kind support. - Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters` to avoid unlimited increase in memory usage, [#&#8203;4083](https://togithub.com/pydantic/pydantic/issues/4083) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Add Jupyverse and FPS as Jupyter projects using pydantic, [#&#8203;4082](https://togithub.com/pydantic/pydantic/issues/4082) by [@&#8203;davidbrochart](https://togithub.com/davidbrochart) - Speedup `__isinstancecheck__` on pydantic models when the type is not a model, may also avoid memory "leaks", [#&#8203;4081](https://togithub.com/pydantic/pydantic/issues/4081) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Fix in-place modification of `FieldInfo` that caused problems with PEP 593 type aliases, [#&#8203;4067](https://togithub.com/pydantic/pydantic/issues/4067) by [@&#8203;adriangb](https://togithub.com/adriangb) - Add support for autocomplete in VS Code via `__dataclass_transform__` when using `pydantic.dataclasses.dataclass`, [#&#8203;4006](https://togithub.com/pydantic/pydantic/issues/4006) by [@&#8203;giuliano-oliveira](https://togithub.com/giuliano-oliveira) - Remove benchmarks from codebase and docs, [#&#8203;3973](https://togithub.com/pydantic/pydantic/issues/3973) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, [#&#8203;3972](https://togithub.com/pydantic/pydantic/issues/3972) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Fix nested Python dataclass schema regression, [#&#8203;3819](https://togithub.com/pydantic/pydantic/issues/3819) by [@&#8203;himbeles](https://togithub.com/himbeles) - Update documentation about lazy evaluation of sources for Settings, [#&#8203;3806](https://togithub.com/pydantic/pydantic/issues/3806) by [@&#8203;garyd203](https://togithub.com/garyd203) - Prevent subclasses of bytes being converted to bytes, [#&#8203;3706](https://togithub.com/pydantic/pydantic/issues/3706) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints, [#&#8203;3681](https://togithub.com/pydantic/pydantic/issues/3681) by [@&#8203;aleksul](https://togithub.com/aleksul) - Allow self referencing `ClassVar`s in models, [#&#8203;3679](https://togithub.com/pydantic/pydantic/issues/3679) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) - **Breaking Change, see [#&#8203;4106](https://togithub.com/pydantic/pydantic/issues/4106)**: Fix issue with self-referencing dataclass, [#&#8203;3675](https://togithub.com/pydantic/pydantic/issues/3675) by [@&#8203;uriyyo](https://togithub.com/uriyyo) - Include non-standard port numbers in rendered URLs, [#&#8203;3652](https://togithub.com/pydantic/pydantic/issues/3652) by [@&#8203;dolfinus](https://togithub.com/dolfinus) - `Config.copy_on_model_validation` does a deep copy and not a shallow one, [#&#8203;3641](https://togithub.com/pydantic/pydantic/issues/3641) by [@&#8203;PrettyWood](https://togithub.com/PrettyWood) - fix: clarify that discriminated unions do not support singletons, [#&#8203;3636](https://togithub.com/pydantic/pydantic/issues/3636) by [@&#8203;tommilligan](https://togithub.com/tommilligan) - Add `read_text(encoding='utf-8')` for `setup.py`, [#&#8203;3625](https://togithub.com/pydantic/pydantic/issues/3625) by [@&#8203;hswong3i](https://togithub.com/hswong3i) - Fix JSON Schema generation for Discriminated Unions within lists, [#&#8203;3608](https://togithub.com/pydantic/pydantic/issues/3608) by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - "after 1 am and before 7 am" in timezone Etc/UTC. 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/canonical/charmcraft). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE0My4xIn0=-->

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Renovate’s Pydantic 1.9.0-to-1.10.5 update was closed unmerged and ignored because craft-parts needed separate compatibility changes first.
stealth/space-bunny-alpha — closed superseded Renovate’s Pydantic 1.10.5 update was closed unmerged and ignored; maintainers said craft-parts needed its own compatibility changes first.
stealth/space-bunny-alpha — closed stale Pydantic 1.10.5 update was closed unmerged; @lengau said it required accompanying changes to craft-parts, and Renovate ignored this specific version.
qwen/qwen3.6-35b-a3b — — Pydantic v1.10.5 update was closed unmerged. A maintainer noted it requires accompanying changes in craft-parts before proceeding. Renovate will ignore this specific version.
qwen3.6-35b-a3b-mtp-q6 — — Closed unmerged. The pydantic v1.10.5 update requires separate changes for a craft-parts upgrade. Renovate will ignore this specific version.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#960 chore(deps): update dependency pydantic to v1.10.4 charmcraft closed Closed unmerged: craft-parts 1.17.1 pinned pydantic 1.9.0, blocking 1.10.4; no Charmcraft commit shipped the update.
92%
#163 chore(deps): update dependency pydantic to v2 craft-application closed Renovate’s Pydantic 2.5.2 bump was closed unmerged and later replaced by merged migration PR #401 (commit c2f0978a).
90%
#28 chore(deps): update dependency pydantic to v2 - autoclosed craft-grammar closed Renovate's Pydantic 2 bump was closed unmerged and superseded by dedicated migration PR #33, which landed in commit 5e225fb.
88%
#116 chore(deps): update dependency pydantic to v2 craft-store closed Renovate's pydantic v2 bump PR was closed unmerged by @lengau (2023-10-22, "Pydantic 2 will need some significant changes"); the real migration landed later in merged PR #193 (commit 026b78d).
87%
#370 chore(deps): update dependency pydantic to v2 craft-providers closed Renovate pydantic v2 bump closed unmerged by mr-cal to defer migration to a larger craft effort; the upgrade later landed in merged PR #451 (commit f380a9e) for 2.0.
87%
#1351 chore(deps): update dependency pydantic to v2 charmcraft closed Renovate PR bumping pydantic 1.10.13 -> 2.4.2 was closed unmerged by lengau ("will need its own project"). The upgrade later landed via PR #1777 (70078b03), merged to main in #1817 (394e6e55).
85%
#164 chore(deps): update dependency pydantic-yaml to v1 craft-application closed pydantic-yaml 1.x update PR #164 was closed unmerged; Renovate marked the update as ignored.
85%
#68 chore(deps): update dependency pydantic_core to v2.27.2 - autoclosed imagecraft closed Renovate's pydantic_core 2.27.2 bump in #68 was autoclosed unmerged after inactivity; no resolving commit or replacement PR was identified.
84%
#39 chore(deps): update dependency mypy to ~=1.11.1 craft-grammar merged Renovate's mypy bump ~=1.10.0 -> ~=1.11.1 merged into craft-grammar main via commit 8b6b8f3 after 1 approval; single-line pyproject.toml requirement change.
84%
#1191 chore(deps): update dependency pydantic-yaml to v1 charmcraft closed pydantic-yaml 1.1.0 was not merged; PR #1191 was closed on 2023-07-26 because manual integration was required, and Renovate then ignored future 1.x updates.
83%