Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Bump pydantic from 2.12.2 to 2.12.3 (aio-libs#11695)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.12.2 to
2.12.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pydantic/pydantic/releases">pydantic's
releases</a>.</em></p>
<blockquote>
<h2>v2.12.3 2025-10-17</h2>
<h2>v2.12.3 (2025-10-17)</h2>
<h3>What's Changed</h3>
<p>This is the third 2.13 patch release, fixing issues related to the
<code>FieldInfo</code> class, and reverting a change to the supported <a
href="https://docs.pydantic.dev/latest/concepts/validators/#model-validators"><em>after</em>
model validator</a> function signatures.</p>
<ul>
<li>Raise a warning when an invalid after model validator function
signature is raised by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://github.com/pydantic/pydantic/pull/12414">#12414</a>.
Starting in 2.12.0, using class methods for <em>after</em> model
validators raised an error, but the error wasn't raised concistently. We
decided to emit a deprecation warning instead.</li>
<li>Add <a
href="https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.FieldInfo.asdict"><code>FieldInfo.asdict()</code></a>
method, improve documentation around <code>FieldInfo</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://github.com/pydantic/pydantic/pull/12411">#12411</a>.
This also adds back support for mutations on <code>FieldInfo</code>
classes, that are reused as <code>Annotated</code> metadata.
<strong>However</strong>, note that this is still <em>not</em> a
supported pattern. Instead, please refer to the <a
href="https://docs.pydantic.dev/latest/examples/dynamic_models/">added
example</a> in the documentation.</li>
</ul>
<p>The <a
href="https://pydantic.dev/articles/pydantic-v2-12-release#changes">blog
post</a> section on changes was also updated to document the changes
related to <code>serialize_as_any</code>.</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/pydantic/pydantic/compare/v2.12.2...v2.12.3">https://github.com/pydantic/pydantic/compare/v2.12.2...v2.12.3</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pydantic/pydantic/blob/main/HISTORY.md">pydantic's
changelog</a>.</em></p>
<blockquote>
<h2>v2.12.3 (2025-10-17)</h2>
<p><a
href="https://github.com/pydantic/pydantic/releases/tag/v2.12.3">GitHub
release</a></p>
<h3>What's Changed</h3>
<p>This is the third 2.13 patch release, fixing issues related to the
<code>FieldInfo</code> class, and reverting a change to the supported
<a
href="https://docs.pydantic.dev/latest/concepts/validators/#model-validators"><em>after</em>
model validator</a> function signatures.</p>
<ul>
<li>Raise a warning when an invalid after model validator function
signature is raised by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://github.com/pydantic/pydantic/pull/12414">#12414</a>.
Starting in 2.12.0, using class methods for <em>after</em> model
validators raised an error, but the error wasn't raised concistently. We
decided
to emit a deprecation warning instead.</li>
<li>Add <a
href="https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.FieldInfo.asdict"><code>FieldInfo.asdict()</code></a>
method, improve documentation around <code>FieldInfo</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://github.com/pydantic/pydantic/pull/12411">#12411</a>.
This also add back support for mutations on <code>FieldInfo</code>
classes, that are reused as <code>Annotated</code> metadata.
<strong>However</strong>, note that this is still
<em>not</em> a supported pattern. Instead, please refer to the <a
href="https://docs.pydantic.dev/latest/examples/dynamic_models/">added
example</a> in the documentation.</li>
</ul>
<p>The <a
href="https://pydantic.dev/articles/pydantic-v2-12-release#changes">blog
post</a> section on changes was also updated to document the changes
related to <code>serialize_as_any</code>.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pydantic/pydantic/commit/1a8850d101e67d2744ba8c6286e1172d7cd89d0b"><code>1a8850d</code></a>
Prepare release 2.12.3</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/09dbcf29c73c3fd7fd3ef1edfebe357e807cc9ca"><code>09dbcf2</code></a>
Add <code>FieldInfo.asdict()</code> method, improve documentation around
<code>FieldInfo</code></li>
<li><a
href="https://github.com/pydantic/pydantic/commit/5da43310ec61a7b9b3017b2b9f388e778398a1bc"><code>5da4331</code></a>
Improve documentation about serialize as any behavior</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/9c863245ad3799ab331f33b52e2d7441e9c1191e"><code>9c86324</code></a>
Raise a warning when an invalid after model validator function signature
is r...</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/36a73c6ed53df7f1cad3343bc811e1dd3f52d26f"><code>36a73c6</code></a>
Update <code>pydantic-extra-types</code> dependency to version
<code>&gt;=2.10.6</code></li>
<li>See full diff in <a
href="https://github.com/pydantic/pydantic/compare/v2.12.2...v2.12.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pydantic&package-manager=pip&previous-version=2.12.2&new-version=2.12.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 20, 2025
commit 0a840daecb59264a37421e7ba37810f4d6ffc931
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pycares==4.11.0
# via aiodns
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pycares==4.11.0
# via aiodns
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pycares==4.11.0
# via aiodns
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/test-common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ proxy-py==2.4.10
# via -r requirements/test-common.in
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/test-ft.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pycares==4.11.0
# via aiodns
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pycares==4.11.0
# via aiodns
pycparser==2.23
# via cffi
pydantic==2.12.2
pydantic==2.12.3
# via python-on-whales
pydantic-core==2.41.4
# via pydantic
Expand Down
Loading