Skip to content

Commit

Permalink
Bump pydantic from 2.9.2 to 2.10.0 (#443)
Browse files Browse the repository at this point in the history
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.2 to
2.10.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.10.0 2024-11-20</h2>
<p>The code released in v2.10.0 is practically identical to that of
v2.10.0b2.
See the <a
href="https://pydantic.dev/articles/pydantic-v2-10-release">v2.10
release blog post</a> for the highlights!</p>
<h2>What's Changed</h2>
<h3>Packaging</h3>
<ul>
<li>Bump <code>pydantic-core</code> to <code>v2.27.0</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10825">#10825</a></li>
<li>Replaced pdm with uv by <a
href="https://github.com/frfahim"><code>@​frfahim</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10727">#10727</a></li>
</ul>
<h3>New Features</h3>
<ul>
<li>Support <code>fractions.Fraction</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10318">#10318</a></li>
<li>Support <code>Hashable</code> for json validation by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10324">#10324</a></li>
<li>Add a <code>SocketPath</code> type for <code>linux</code> systems by
<a href="https://github.com/theunkn0wn1"><code>@​theunkn0wn1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10378">#10378</a></li>
<li>Allow arbitrary refs in JSON schema <code>examples</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10417">#10417</a></li>
<li>Support <code>defer_build</code> for Pydantic dataclasses by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10313">#10313</a></li>
<li>Adding v1 / v2 incompatibility warning for nested v1 model by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10431">#10431</a></li>
<li>Add support for unpacked <code>TypedDict</code> to type hint
variadic keyword arguments with <code>@validate_call</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10416">#10416</a></li>
<li>Support compiled patterns in <code>protected_namespaces</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10522">#10522</a></li>
<li>Add support for <code>propertyNames</code> in JSON schema by <a
href="https://github.com/FlorianSW"><code>@​FlorianSW</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10478">#10478</a></li>
<li>Adding <code>__replace__</code> protocol for Python 3.13+ support by
<a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10596">#10596</a></li>
<li>Expose public <code>sort</code> method for JSON schema generation by
<a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10595">#10595</a></li>
<li>Add runtime validation of <code>@validate_call</code> callable
argument by <a
href="https://github.com/kc0506"><code>@​kc0506</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10627">#10627</a></li>
<li>Add <code>experimental_allow_partial</code> support by <a
href="https://github.com/samuelcolvin"><code>@​samuelcolvin</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10748">#10748</a></li>
<li>Support default factories taking validated data as an argument by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10678">#10678</a></li>
<li>Allow subclassing <code>ValidationError</code> and
<code>PydanticCustomError</code> by <a
href="https://github.com/Youssefares"><code>@​Youssefares</code></a> in
<a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1413">pydantic/pydantic-core#1413</a></li>
<li>Add <code>trailing-strings</code> support to
<code>experimental_allow_partial</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10825">#10825</a></li>
<li>Add <code>rebuild()</code> method for <code>TypeAdapter</code> and
simplify <code>defer_build</code> patterns by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10537">#10537</a></li>
<li>Improve <code>TypeAdapter</code> instance repr by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10872">#10872</a></li>
</ul>
<h3>Changes</h3>
<ul>
<li>Don't allow customization of <code>SchemaGenerator</code> until
interface is more stable by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10303">#10303</a></li>
<li>Cleanly <code>defer_build</code> on <code>TypeAdapters</code>,
removing experimental flag by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10329">#10329</a></li>
<li>Fix <code>mro</code> of generic subclass by <a
href="https://github.com/kc0506"><code>@​kc0506</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10100">#10100</a></li>
<li>Strip whitespaces on JSON Schema title generation by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10404">#10404</a></li>
<li>Use <code>b64decode</code> and <code>b64encode</code> for
<code>Base64Bytes</code> type by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10486">#10486</a></li>
<li>Relax protected namespace config default by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10441">#10441</a></li>
<li>Revalidate parametrized generics if instance's origin is subclass of
OG class by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10666">#10666</a></li>
<li>Warn if configuration is specified on the <code>@DataClass</code>
decorator and with the <code>__pydantic_config__</code> attribute by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10406">#10406</a></li>
<li>Recommend against using <code>Ellipsis</code> (...) with
<code>Field</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10661">#10661</a></li>
<li>Migrate to subclassing instead of annotated approach for pydantic
url types by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10662">#10662</a></li>
<li>Change JSON schema generation of <code>Literal</code>s and
<code>Enums</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10692">#10692</a></li>
<li>Simplify unions involving <code>Any</code> or <code>Never</code>
when replacing type variables by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10338">#10338</a></li>
<li>Do not require padding when decoding <code>base64</code> bytes by <a
href="https://github.com/bschoenmaeckers"><code>@​bschoenmaeckers</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1448">pydantic/pydantic-core#1448</a></li>
<li>Support dates all the way to 1BC by <a
href="https://github.com/changhc"><code>@​changhc</code></a> in <a
href="https://redirect.github.com/pydantic/speedate/pull/77">pydantic/speedate#77</a></li>
</ul>
<h3>Performance</h3>
<!-- 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.10.0 (2024-11-20)</h2>
<p>The code released in v2.10.0 is practically identical to that of
v2.10.0b2.</p>
<p><a
href="https://github.com/pydantic/pydantic/releases/tag/v2.10.0">GitHub
release</a></p>
<p>See the <a
href="https://pydantic.dev/articles/pydantic-v2-10-release">v2.10
release blog post</a> for the highlights!</p>
<h3>What's Changed</h3>
<h4>Packaging</h4>
<ul>
<li>Bump <code>pydantic-core</code> to <code>v2.27.0</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10825">#10825</a></li>
<li>Replaced pdm with uv by <a
href="https://github.com/frfahim"><code>@​frfahim</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10727">#10727</a></li>
</ul>
<h4>New Features</h4>
<ul>
<li>Support <code>fractions.Fraction</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10318">#10318</a></li>
<li>Support <code>Hashable</code> for json validation by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10324">#10324</a></li>
<li>Add a <code>SocketPath</code> type for <code>linux</code> systems by
<a href="https://github.com/theunkn0wn1"><code>@​theunkn0wn1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10378">#10378</a></li>
<li>Allow arbitrary refs in JSON schema <code>examples</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10417">#10417</a></li>
<li>Support <code>defer_build</code> for Pydantic dataclasses by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10313">#10313</a></li>
<li>Adding v1 / v2 incompatibility warning for nested v1 model by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10431">#10431</a></li>
<li>Add support for unpacked <code>TypedDict</code> to type hint
variadic keyword arguments with <code>@validate_call</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10416">#10416</a></li>
<li>Support compiled patterns in <code>protected_namespaces</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10522">#10522</a></li>
<li>Add support for <code>propertyNames</code> in JSON schema by <a
href="https://github.com/FlorianSW"><code>@​FlorianSW</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10478">#10478</a></li>
<li>Adding <code>__replace__</code> protocol for Python 3.13+ support by
<a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10596">#10596</a></li>
<li>Expose public <code>sort</code> method for JSON schema generation by
<a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10595">#10595</a></li>
<li>Add runtime validation of <code>@validate_call</code> callable
argument by <a
href="https://github.com/kc0506"><code>@​kc0506</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10627">#10627</a></li>
<li>Add <code>experimental_allow_partial</code> support by <a
href="https://github.com/samuelcolvin"><code>@​samuelcolvin</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10748">#10748</a></li>
<li>Support default factories taking validated data as an argument by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10678">#10678</a></li>
<li>Allow subclassing <code>ValidationError</code> and
<code>PydanticCustomError</code> by <a
href="https://github.com/Youssefares"><code>@​Youssefares</code></a> in
<a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1413">pydantic/pydantic-core#1413</a></li>
<li>Add <code>trailing-strings</code> support to
<code>experimental_allow_partial</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10825">#10825</a></li>
<li>Add <code>rebuild()</code> method for <code>TypeAdapter</code> and
simplify <code>defer_build</code> patterns by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10537">#10537</a></li>
<li>Improve <code>TypeAdapter</code> instance repr by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10872">#10872</a></li>
</ul>
<h4>Changes</h4>
<ul>
<li>Don't allow customization of <code>SchemaGenerator</code> until
interface is more stable by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10303">#10303</a></li>
<li>Cleanly <code>defer_build</code> on <code>TypeAdapters</code>,
removing experimental flag by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10329">#10329</a></li>
<li>Fix <code>mro</code> of generic subclass by <a
href="https://github.com/kc0506"><code>@​kc0506</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10100">#10100</a></li>
<li>Strip whitespaces on JSON Schema title generation by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10404">#10404</a></li>
<li>Use <code>b64decode</code> and <code>b64encode</code> for
<code>Base64Bytes</code> type by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10486">#10486</a></li>
<li>Relax protected namespace config default by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10441">#10441</a></li>
<li>Revalidate parametrized generics if instance's origin is subclass of
OG class by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10666">#10666</a></li>
<li>Warn if configuration is specified on the <code>@DataClass</code>
decorator and with the <code>__pydantic_config__</code> attribute by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10406">#10406</a></li>
<li>Recommend against using <code>Ellipsis</code> (...) with
<code>Field</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10661">#10661</a></li>
<li>Migrate to subclassing instead of annotated approach for pydantic
url types by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10662">#10662</a></li>
<li>Change JSON schema generation of <code>Literal</code>s and
<code>Enums</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10692">#10692</a></li>
<li>Simplify unions involving <code>Any</code> or <code>Never</code>
when replacing type variables by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/10338">#10338</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pydantic/pydantic/commit/910bc54b6d5c05e4eabb4a9076def9e7ed23d38a"><code>910bc54</code></a>
Prep for v2.10.0 release (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10904">#10904</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/b94af2ef44f5efd989fa3a84d6770011fe8d5b33"><code>b94af2e</code></a>
Make <code>pre-commit</code> install easier (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10901">#10901</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/949bb06995ee976c118b1fa1504fb1bf6796a80e"><code>949bb06</code></a>
Consistency with &quot;<code>python&quot; rather than
&quot;</code>py&quot; (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10900">#10900</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/465802170b5cf3b192f5cce6ace752560cdddebb"><code>4658021</code></a>
Fix attributes format of code blocks in documentation (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10898">#10898</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/15caf41011695cdd86a25650461d7c04c034d62e"><code>15caf41</code></a>
fix indentation level (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10897">#10897</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/2b1cb8fa17aa40c0eb195a94fcb15266aa9101cb"><code>2b1cb8f</code></a>
<code>TypeAdapter</code> repr modification - use parens not brackets (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10880">#10880</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/40322e1da960e92bfb04a38fdf4c054ad5c1c26c"><code>40322e1</code></a>
Update <code>timedelta</code> docs with correct spec (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10879">#10879</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/441389249275fbf6e227aabe31a495a715e31587"><code>4413892</code></a>
Improve <code>TypeAdapter</code> instance repr (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10872">#10872</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/e5263821c04792b255a19fe65f8af5b2314191ac"><code>e526382</code></a>
Subclass all single host url classes from <code>AnyUrl</code> to
preserve behavior from ...</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/c62d2d5cf08bb5faec46d8f00bb050caba517d42"><code>c62d2d5</code></a>
Docs updates: type adapter rebuild instructions (<a
href="https://redirect.github.com/pydantic/pydantic/issues/10849">#10849</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pydantic/pydantic/compare/v2.9.2...v2.10.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.9.2&new-version=2.10.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 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>
  • Loading branch information
github-actions[bot] authored Nov 21, 2024
2 parents dab63bc + efe7fa7 commit 647266d
Showing 1 changed file with 106 additions and 98 deletions.
Loading

0 comments on commit 647266d

Please sign in to comment.