Skip to content

Commit 925ba85

Browse files
Bump pydantic from 2.12.5 to 2.13.0 (#12376)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.12.5 to 2.13.0. <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.13.0 2026-04-13</h2> <h2>v2.13.0 (2026-04-13)</h2> <p>The highlights of the v2.13 release are available in the <a href="https://pydantic.dev/articles/pydantic-v2-13-release">blog post</a>. Several minor changes (considered non-breaking changes according to our <a href="https://pydantic.dev/docs/validation/2.13/get-started/version-policy/#pydantic-v2">versioning policy</a>) are also included in this release. Make sure to look into them before upgrading.</p> <p>This release contains the updated <code>pydantic.v1</code> namespace, matching version 1.10.26 which includes support for Python 3.14.</p> <h3>What's Changed</h3> <p>See the beta releases for all changes sinces 2.12.</p> <h4>Packaging</h4> <ul> <li>Add zizmor for GitHub Actions workflow linting by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13039">#13039</a></li> <li>Update jiter to v0.14.0 to fix a segmentation fault on musl Linux by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13064">#13064</a></li> </ul> <h4>New Features</h4> <ul> <li>Allow default factories of private attributes to take validated model data by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13013">#13013</a></li> </ul> <h4>Changes</h4> <ul> <li>Warn when serializing fixed length tuples with too few items by <a href="https://github.com/arvindsaripalli"><code>@​arvindsaripalli</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13016">#13016</a></li> </ul> <h4>Fixes</h4> <ul> <li>Change type of <code>Any</code> when synthesizing <code>_build_sources</code> for <code>BaseSettings.__init__()</code> signature in the mypy plugin by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13049">#13049</a></li> <li>Fix model equality when using runtime <code>extra</code> configuration by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13062">#13062</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/arvindsaripalli"><code>@​arvindsaripalli</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/13016">#13016</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic/compare/v2.12.0...v2.13.0">https://github.com/pydantic/pydantic/compare/v2.12.0...v2.13.0</a></p> <h2>v2.13.0b3 2026-03-31</h2> <!-- raw HTML omitted --> <h2>What's Changed</h2> <h3>Packaging</h3> <ul> <li>Add riscv64 build target for manylinux by <a href="https://github.com/boosterl"><code>@​boosterl</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12723">#12723</a></li> </ul> <h3>New Features</h3> <ul> <li>Add <code>ascii_only</code> option to <code>StringConstraints</code> by <a href="https://github.com/ai-man-codes"><code>@​ai-man-codes</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12907">#12907</a></li> <li>Support <code>exclude_if</code> in computed fields by <a href="https://github.com/andresliszt"><code>@​andresliszt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12748">#12748</a></li> <li>Push down constraints in unions involving <code>MISSING</code> sentinel by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12908">#12908</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </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.13.0 (2026-04-13)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.13.0">GitHub release</a></p> <p>The highlights of the v2.13 release are available in the <a href="https://pydantic.dev/articles/pydantic-v2-13-release">blog post</a>. Several minor changes (considered non-breaking changes according to our <a href="https://pydantic.dev/docs/validation/2.13/get-started/version-policy/#pydantic-v2">versioning policy</a>) are also included in this release. Make sure to look into them before upgrading.</p> <p>This release contains the updated <code>pydantic.v1</code> namespace, matching version 1.10.26 which includes support for Python 3.14.</p> <h3>What's Changed</h3> <p>See the beta releases for all changes sinces 2.12.</p> <h4>New Features</h4> <ul> <li>Allow default factories of private attributes to take validated model data by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13013">#13013</a></li> </ul> <h4>Changes</h4> <ul> <li>Warn when serializing fixed length tuples with too few items by <a href="https://github.com/arvindsaripalli"><code>@​arvindsaripalli</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13016">#13016</a></li> </ul> <h4>Fixes</h4> <ul> <li>Change type of <code>Any</code> when synthesizing <code>_build_sources</code> for <code>BaseSettings.__init__()</code> signature in the mypy plugin by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13049">#13049</a></li> <li>Fix model equality when using runtime <code>extra</code> configuration by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13062">#13062</a></li> </ul> <h4>Packaging</h4> <ul> <li>Add zizmor for GitHub Actions workflow linting by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13039">#13039</a></li> <li>Update jiter to v0.14.0 to fix a segmentation fault on musl Linux by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13064">#13064</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/arvindsaripalli"><code>@​arvindsaripalli</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/13016">#13016</a></li> </ul> <h2>v2.13.0b3 (2026-03-31)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.13.0b3">GitHub release</a></p> <h3>What's Changed</h3> <h4>New Features</h4> <ul> <li>Add <code>ascii_only</code> option to <code>StringConstraints</code> by <a href="https://github.com/ai-man-codes"><code>@​ai-man-codes</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12907">#12907</a></li> <li>Support <code>exclude_if</code> in computed fields by <a href="https://github.com/andresliszt"><code>@​andresliszt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12748">#12748</a></li> <li>Push down constraints in unions involving <code>MISSING</code> sentinel by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/12908">#12908</a></li> </ul> <h4>Changes</h4> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pydantic/pydantic/commit/46bf4fa648af3a1fbf4603a37f210e9d9c618357"><code>46bf4fa</code></a> Fix Pydantic release workflow (<a href="https://redirect.github.com/pydantic/pydantic/issues/13067">#13067</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/1b359edab09c623464d23c6fd2503ae5ff276d43"><code>1b359ed</code></a> Prepare release v2.13.0 (<a href="https://redirect.github.com/pydantic/pydantic/issues/13065">#13065</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/b1bf19445d8ac144a7a0e82674d2d87eebab6c18"><code>b1bf194</code></a> Fix model equality when using runtime <code>extra</code> configuration (<a href="https://redirect.github.com/pydantic/pydantic/issues/13062">#13062</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/17a35e371bdff348c0690651d324c91fc7c9ff9e"><code>17a35e3</code></a> Update jiter to v0.14.0 (<a href="https://redirect.github.com/pydantic/pydantic/issues/13064">#13064</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/feea402b23fa23774669908c4e08a61ba1e4238e"><code>feea402</code></a> Use <code>simulation</code> mode in Codspeed CI (<a href="https://redirect.github.com/pydantic/pydantic/issues/13063">#13063</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/671c9b0d4d3f9b2f1b95ca32ac85cb69e824e0bc"><code>671c9b0</code></a> Add basic benchmarks for model equality (<a href="https://redirect.github.com/pydantic/pydantic/issues/13061">#13061</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/d17d71e00a35f190b27321aa6f8f2a03139c00b8"><code>d17d71e</code></a> Bump cryptography from 46.0.6 to 46.0.7 (<a href="https://redirect.github.com/pydantic/pydantic/issues/13056">#13056</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/919d61ac419af5151b673a90b65c9a12631091cf"><code>919d61a</code></a> 👥 Update Pydantic People (<a href="https://redirect.github.com/pydantic/pydantic/issues/13059">#13059</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/e7cf5dcb939ea98511e669b647c0273667a1b08a"><code>e7cf5dc</code></a> Fix people workflow (<a href="https://redirect.github.com/pydantic/pydantic/issues/13047">#13047</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/2a806ad09b984fcc43568191aba5d965350995a0"><code>2a806ad</code></a> Add regression test for <code>MISSING</code> sentinel serialization with subclasses (<a href="https://redirect.github.com/pydantic/pydantic/issues/13">#13</a>...</li> <li>Additional commits viewable in <a href="https://github.com/pydantic/pydantic/compare/v2.12.5...v2.13.0">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.5&new-version=2.13.0)](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 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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 9f315d3 commit 925ba85

File tree

6 files changed

+88
-88
lines changed

6 files changed

+88
-88
lines changed

requirements/constraints.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ pycares==5.0.1
160160
# via aiodns
161161
pycparser==3.0
162162
# via cffi
163-
pydantic==2.12.5
163+
pydantic==2.13.0
164164
# via python-on-whales
165-
pydantic-core==2.41.5
165+
pydantic-core==2.46.0
166166
# via pydantic
167167
pyenchant==3.3.0
168168
# via sphinxcontrib-spelling

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ pycares==5.0.1
157157
# via aiodns
158158
pycparser==3.0
159159
# via cffi
160-
pydantic==2.12.5
160+
pydantic==2.13.0
161161
# via python-on-whales
162-
pydantic-core==2.41.5
162+
pydantic-core==2.46.0
163163
# via pydantic
164164
pygments==2.20.0
165165
# via

requirements/lint.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ pycares==5.0.1
7575
# via aiodns
7676
pycparser==3.0
7777
# via cffi
78-
pydantic==2.12.5
78+
pydantic==2.13.0
7979
# via python-on-whales
80-
pydantic-core==2.41.5
80+
pydantic-core==2.46.0
8181
# via pydantic
8282
pygments==2.20.0
8383
# via

requirements/test-common.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
annotated-types==0.7.0
88
# via pydantic
99
blockbuster==1.5.26
10-
# via -r test-common.in
10+
# via -r requirements/test-common.in
1111
cffi==2.0.0
1212
# via
1313
# cryptography
@@ -16,7 +16,7 @@ click==8.3.2
1616
# via wait-for-it
1717
coverage==7.13.5
1818
# via
19-
# -r test-common.in
19+
# -r requirements/test-common.in
2020
# pytest-cov
2121
cryptography==46.0.7
2222
# via trustme
@@ -27,68 +27,68 @@ execnet==2.1.2
2727
forbiddenfruit==0.1.4
2828
# via blockbuster
2929
freezegun==1.5.5
30-
# via -r test-common.in
30+
# via -r requirements/test-common.in
3131
idna==3.11
3232
# via trustme
3333
iniconfig==2.3.0
3434
# via pytest
3535
isal==1.8.0 ; python_version < "3.14"
36-
# via -r test-common.in
36+
# via -r requirements/test-common.in
3737
librt==0.9.0
3838
# via mypy
3939
markdown-it-py==4.0.0
4040
# via rich
4141
mdurl==0.1.2
4242
# via markdown-it-py
4343
mypy==1.19.1 ; implementation_name == "cpython"
44-
# via -r test-common.in
44+
# via -r requirements/test-common.in
4545
mypy-extensions==1.1.0
4646
# via mypy
4747
packaging==26.0
4848
# via pytest
4949
pathspec==1.0.4
5050
# via mypy
5151
pkgconfig==1.6.0
52-
# via -r test-common.in
52+
# via -r requirements/test-common.in
5353
pluggy==1.6.0
5454
# via
5555
# pytest
5656
# pytest-cov
5757
proxy-py==2.4.10
58-
# via -r test-common.in
58+
# via -r requirements/test-common.in
5959
pycparser==3.0
6060
# via cffi
61-
pydantic==2.12.5
61+
pydantic==2.13.0
6262
# via python-on-whales
63-
pydantic-core==2.41.5
63+
pydantic-core==2.46.0
6464
# via pydantic
6565
pygments==2.20.0
6666
# via
6767
# pytest
6868
# rich
6969
pytest==9.0.3
7070
# via
71-
# -r test-common.in
71+
# -r requirements/test-common.in
7272
# pytest-codspeed
7373
# pytest-cov
7474
# pytest-mock
7575
# pytest-xdist
7676
pytest-codspeed==4.3.0
77-
# via -r test-common.in
77+
# via -r requirements/test-common.in
7878
pytest-cov==7.1.0
79-
# via -r test-common.in
79+
# via -r requirements/test-common.in
8080
pytest-mock==3.15.1
81-
# via -r test-common.in
81+
# via -r requirements/test-common.in
8282
pytest-xdist==3.8.0
83-
# via -r test-common.in
83+
# via -r requirements/test-common.in
8484
python-dateutil==2.9.0.post0
8585
# via freezegun
8686
python-on-whales==0.81.0
87-
# via -r test-common.in
87+
# via -r requirements/test-common.in
8888
rich==15.0.0
8989
# via pytest-codspeed
9090
setuptools-git==1.2
91-
# via -r test-common.in
91+
# via -r requirements/test-common.in
9292
six==1.17.0
9393
# via python-dateutil
9494
tomli==2.4.1
@@ -97,7 +97,7 @@ tomli==2.4.1
9797
# mypy
9898
# pytest
9999
trustme==1.2.1 ; platform_machine != "i686"
100-
# via -r test-common.in
100+
# via -r requirements/test-common.in
101101
typing-extensions==4.15.0
102102
# via
103103
# cryptography
@@ -110,6 +110,6 @@ typing-extensions==4.15.0
110110
typing-inspection==0.4.2
111111
# via pydantic
112112
wait-for-it==2.3.0
113-
# via -r test-common.in
113+
# via -r requirements/test-common.in
114114
zlib-ng==1.0.0
115-
# via -r test-common.in
115+
# via -r requirements/test-common.in

requirements/test-ft.txt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
# pip-compile --allow-unsafe --output-file=requirements/test-ft.txt --strip-extras requirements/test-ft.in
66
#
77
aiodns==4.0.0
8-
# via -r runtime-deps.in
8+
# via -r requirements/runtime-deps.in
99
aiohappyeyeballs==2.6.1
10-
# via -r runtime-deps.in
10+
# via -r requirements/runtime-deps.in
1111
aiosignal==1.4.0
12-
# via -r runtime-deps.in
12+
# via -r requirements/runtime-deps.in
1313
annotated-types==0.7.0
1414
# via pydantic
1515
async-timeout==5.0.1 ; python_version < "3.11"
16-
# via -r runtime-deps.in
16+
# via -r requirements/runtime-deps.in
1717
backports-zstd==1.3.0 ; platform_python_implementation == "CPython" and python_version < "3.14"
18-
# via -r runtime-deps.in
18+
# via -r requirements/runtime-deps.in
1919
blockbuster==1.5.26
20-
# via -r test-common.in
20+
# via -r requirements/test-common.in
2121
brotli==1.2.0 ; platform_python_implementation == "CPython"
22-
# via -r runtime-deps.in
22+
# via -r requirements/runtime-deps.in
2323
cffi==2.0.0
2424
# via
2525
# cryptography
@@ -29,7 +29,7 @@ click==8.3.2
2929
# via wait-for-it
3030
coverage==7.13.5
3131
# via
32-
# -r test-common.in
32+
# -r requirements/test-common.in
3333
# pytest-cov
3434
cryptography==46.0.7
3535
# via trustme
@@ -40,21 +40,21 @@ execnet==2.1.2
4040
forbiddenfruit==0.1.4
4141
# via blockbuster
4242
freezegun==1.5.5
43-
# via -r test-common.in
43+
# via -r requirements/test-common.in
4444
frozenlist==1.8.0
4545
# via
46-
# -r runtime-deps.in
46+
# -r requirements/runtime-deps.in
4747
# aiosignal
4848
gunicorn==25.3.0
49-
# via -r base-ft.in
49+
# via -r requirements/base-ft.in
5050
idna==3.11
5151
# via
5252
# trustme
5353
# yarl
5454
iniconfig==2.3.0
5555
# via pytest
5656
isal==1.8.0 ; python_version < "3.14"
57-
# via -r test-common.in
57+
# via -r requirements/test-common.in
5858
librt==0.9.0
5959
# via mypy
6060
markdown-it-py==4.0.0
@@ -63,10 +63,10 @@ mdurl==0.1.2
6363
# via markdown-it-py
6464
multidict==6.7.1
6565
# via
66-
# -r runtime-deps.in
66+
# -r requirements/runtime-deps.in
6767
# yarl
6868
mypy==1.19.1 ; implementation_name == "cpython"
69-
# via -r test-common.in
69+
# via -r requirements/test-common.in
7070
mypy-extensions==1.1.0
7171
# via mypy
7272
packaging==26.0
@@ -76,52 +76,52 @@ packaging==26.0
7676
pathspec==1.0.4
7777
# via mypy
7878
pkgconfig==1.6.0
79-
# via -r test-common.in
79+
# via -r requirements/test-common.in
8080
pluggy==1.6.0
8181
# via
8282
# pytest
8383
# pytest-cov
8484
propcache==0.4.1
8585
# via
86-
# -r runtime-deps.in
86+
# -r requirements/runtime-deps.in
8787
# yarl
8888
proxy-py==2.4.10
89-
# via -r test-common.in
89+
# via -r requirements/test-common.in
9090
pycares==5.0.1
9191
# via aiodns
9292
pycparser==3.0
9393
# via cffi
94-
pydantic==2.12.5
94+
pydantic==2.13.0
9595
# via python-on-whales
96-
pydantic-core==2.41.5
96+
pydantic-core==2.46.0
9797
# via pydantic
9898
pygments==2.20.0
9999
# via
100100
# pytest
101101
# rich
102102
pytest==9.0.3
103103
# via
104-
# -r test-common.in
104+
# -r requirements/test-common.in
105105
# pytest-codspeed
106106
# pytest-cov
107107
# pytest-mock
108108
# pytest-xdist
109109
pytest-codspeed==4.3.0
110-
# via -r test-common.in
110+
# via -r requirements/test-common.in
111111
pytest-cov==7.1.0
112-
# via -r test-common.in
112+
# via -r requirements/test-common.in
113113
pytest-mock==3.15.1
114-
# via -r test-common.in
114+
# via -r requirements/test-common.in
115115
pytest-xdist==3.8.0
116-
# via -r test-common.in
116+
# via -r requirements/test-common.in
117117
python-dateutil==2.9.0.post0
118118
# via freezegun
119119
python-on-whales==0.81.0
120-
# via -r test-common.in
120+
# via -r requirements/test-common.in
121121
rich==15.0.0
122122
# via pytest-codspeed
123123
setuptools-git==1.2
124-
# via -r test-common.in
124+
# via -r requirements/test-common.in
125125
six==1.17.0
126126
# via python-dateutil
127127
tomli==2.4.1
@@ -130,10 +130,10 @@ tomli==2.4.1
130130
# mypy
131131
# pytest
132132
trustme==1.2.1 ; platform_machine != "i686"
133-
# via -r test-common.in
133+
# via -r requirements/test-common.in
134134
typing-extensions==4.15.0 ; python_version < "3.13"
135135
# via
136-
# -r runtime-deps.in
136+
# -r requirements/runtime-deps.in
137137
# aiosignal
138138
# cryptography
139139
# exceptiongroup
@@ -146,8 +146,8 @@ typing-extensions==4.15.0 ; python_version < "3.13"
146146
typing-inspection==0.4.2
147147
# via pydantic
148148
wait-for-it==2.3.0
149-
# via -r test-common.in
149+
# via -r requirements/test-common.in
150150
yarl==1.22.0
151-
# via -r runtime-deps.in
151+
# via -r requirements/runtime-deps.in
152152
zlib-ng==1.0.0
153-
# via -r test-common.in
153+
# via -r requirements/test-common.in

0 commit comments

Comments
 (0)