Skip to content

Commit

Permalink
chore(deps-py): update pydantic requirement from ~2.7.0 to >=2.7,<2.9…
Browse files Browse the repository at this point in the history
… in /hugr-py (#1250)

Updates the requirements on
[pydantic](https://github.com/pydantic/pydantic) to permit the latest
version.
<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.8.0 (2024-07-01)</h2>
<p>The code released in <code>v2.8.0</code> is functionally identical to
that of <code>v2.8.0b1</code>.</p>
<p>Check out our <a
href="https://pydantic.dev/articles/pydantic-v2-8-release">blog post</a>
to learn more about the release highlights!</p>
<h2>What's Changed</h2>
<h3>Packaging</h3>
<ul>
<li>Update citation version automatically with new releases by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9673">#9673</a></li>
<li>Bump pyright to <code>v1.1.367</code> and add type checking tests
for pipeline API by <a
href="https://github.com/adriangb"><code>@​adriangb</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9674">#9674</a></li>
<li>Update <code>pydantic.v1</code> stub to <code>v1.10.17</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9707">#9707</a></li>
<li>General package updates to prep for <code>v2.8.0b1</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9741">#9741</a></li>
<li>Bump <code>pydantic-core</code> to <code>v2.20.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/9745">#9745</a></li>
<li>Add support for Python 3.13 by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9743">#9743</a></li>
<li>Update <code>pdm</code> version used for <code>pdm.lock</code> to
<code>v2.16.1</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9761">#9761</a></li>
<li>Update to <code>ruff</code> <code>v0.4.8</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9585">#9585</a></li>
</ul>
<h3>New Features</h3>
<ul>
<li>Experimental: support <code>defer_build</code> for
<code>TypeAdapter</code> by <a
href="https://github.com/MarkusSintonen"><code>@​MarkusSintonen</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/8939">#8939</a></li>
<li>Implement <code>deprecated</code> field in json schema by <a
href="https://github.com/NeevCohen"><code>@​NeevCohen</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9298">#9298</a></li>
<li>Experimental: Add pipeline API by <a
href="https://github.com/adriangb"><code>@​adriangb</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9459">#9459</a></li>
<li>Add support for programmatic title generation by <a
href="https://github.com/NeevCohen"><code>@​NeevCohen</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9183">#9183</a></li>
<li>Implement <code>fail_fast</code> feature by <a
href="https://github.com/uriyyo"><code>@​uriyyo</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9708">#9708</a></li>
<li>Add <code>ser_json_inf_nan='strings'</code> mode to produce valid
JSON by <a
href="https://github.com/josh-newman"><code>@​josh-newman</code></a> in
<a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1307">pydantic/pydantic-core#1307</a></li>
</ul>
<h3>Changes</h3>
<ul>
<li>Add warning when &quot;alias&quot; is set in ignored
<code>Annotated</code> field by <a
href="https://github.com/nix010"><code>@​nix010</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9170">#9170</a></li>
<li>Support serialization of some serializable defaults in JSON schema
by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9624">#9624</a></li>
<li>Relax type specification for <code>__validators__</code> values in
<code>create_model</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9697">#9697</a></li>
<li><strong>Breaking Change:</strong> Improve <code>smart</code> union
matching logic by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1322">pydantic/pydantic-core#1322</a>
You can read more about our <code>smart</code> union matching logic <a
href="https://docs.pydantic.dev/dev/concepts/unions/#smart-mode">here</a>.
In some cases, if the old behavior
is desired, you can switch to <code>left-to-right</code> mode and change
the order of your <code>Union</code> members.</li>
</ul>
<h3>Performance</h3>
<h4>Internal Improvements</h4>
<ul>
<li>⚡️ Speed up <code>_display_error_loc()</code> by 25% in
<code>pydantic/v1/error_wrappers.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9653">#9653</a></li>
<li>⚡️ Speed up <code>_get_all_json_refs()</code> by 34% in
<code>pydantic/json_schema.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9650">#9650</a></li>
<li>⚡️ Speed up <code>is_pydantic_dataclass()</code> by 41% in
<code>pydantic/dataclasses.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9652">#9652</a></li>
<li>⚡️ Speed up <code>to_snake()</code> by 27% in
<code>pydantic/alias_generators.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9747">#9747</a></li>
<li>⚡️ Speed up <code>unwrap_wrapped_function()</code> by 93% in
<code>pydantic/_internal/_decorators.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9727">#9727</a></li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Replace <code>__spec__.parent</code> with <code>__package__</code>
by <a href="https://github.com/hramezani"><code>@​hramezani</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9331">#9331</a></li>
<li>Fix Outputted Model JSON Schema for <code>Sequence</code> type by <a
href="https://github.com/anesmemisevic"><code>@​anesmemisevic</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9303">#9303</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.8.0 (2024-07-01)</h2>
<p><a
href="https://github.com/pydantic/pydantic/releases/tag/v2.8.0">GitHub
release</a></p>
<p>The code released in v2.8.0 is functionally identical to that of
v2.8.0b1.</p>
<h3>What's Changed</h3>
<h4>Packaging</h4>
<ul>
<li>Update citation version automatically with new releases by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9673">#9673</a></li>
<li>Bump pyright to <code>v1.1.367</code> and add type checking tests
for pipeline API by <a
href="https://github.com/adriangb"><code>@​adriangb</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9674">#9674</a></li>
<li>Update <code>pydantic.v1</code> stub to <code>v1.10.17</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9707">#9707</a></li>
<li>General package updates to prep for <code>v2.8.0b1</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9741">#9741</a></li>
<li>Bump <code>pydantic-core</code> to <code>v2.20.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/9745">#9745</a></li>
<li>Add support for Python 3.13 by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9743">#9743</a></li>
<li>Update <code>pdm</code> version used for <code>pdm.lock</code> to
v2.16.1 by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9761">#9761</a></li>
<li>Update to <code>ruff</code> <code>v0.4.8</code> by <a
href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9585">#9585</a></li>
</ul>
<h4>New Features</h4>
<ul>
<li>Experimental: support <code>defer_build</code> for
<code>TypeAdapter</code> by <a
href="https://github.com/MarkusSintonen"><code>@​MarkusSintonen</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/8939">#8939</a></li>
<li>Implement <code>deprecated</code> field in json schema by <a
href="https://github.com/NeevCohen"><code>@​NeevCohen</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9298">#9298</a></li>
<li>Experimental: Add pipeline API by <a
href="https://github.com/adriangb"><code>@​adriangb</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9459">#9459</a></li>
<li>Add support for programmatic title generation by <a
href="https://github.com/NeevCohen"><code>@​NeevCohen</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9183">#9183</a></li>
<li>Implement <code>fail_fast</code> feature by <a
href="https://github.com/uriyyo"><code>@​uriyyo</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9708">#9708</a></li>
<li>Add <code>ser_json_inf_nan='strings'</code> mode to produce valid
JSON by <a
href="https://github.com/josh-newman"><code>@​josh-newman</code></a> in
<a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1307">pydantic/pydantic-core#1307</a></li>
</ul>
<h4>Changes</h4>
<ul>
<li>Add warning when &quot;alias&quot; is set in ignored
<code>Annotated</code> field by <a
href="https://github.com/nix010"><code>@​nix010</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9170">#9170</a></li>
<li>Support serialization of some serializable defaults in JSON schema
by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9624">#9624</a></li>
<li>Relax type specification for <code>__validators__</code> values in
<code>create_model</code> by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9697">#9697</a></li>
<li><strong>Breaking Change:</strong> Improve <code>smart</code> union
matching logic by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic-core/pull/1322">pydantic/pydantic-core#1322</a>
You can read more about our <code>smart</code> union matching logic <a
href="https://docs.pydantic.dev/dev/concepts/unions/#smart-mode">here</a>.
In some cases, if the old behavior
is desired, you can switch to <code>left-to-right</code> mode and change
the order of your <code>Union</code> members.</li>
</ul>
<h4>Performance</h4>
<h5>Internal Improvements</h5>
<ul>
<li>⚡️ Speed up <code>_display_error_loc()</code> by 25% in
<code>pydantic/v1/error_wrappers.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9653">#9653</a></li>
<li>⚡️ Speed up <code>_get_all_json_refs()</code> by 34% in
<code>pydantic/json_schema.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9650">#9650</a></li>
<li>⚡️ Speed up <code>is_pydantic_dataclass()</code> by 41% in
<code>pydantic/dataclasses.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9652">#9652</a></li>
<li>⚡️ Speed up <code>to_snake()</code> by 27% in
<code>pydantic/alias_generators.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9747">#9747</a></li>
<li>⚡️ Speed up <code>unwrap_wrapped_function()</code> by 93% in
<code>pydantic/_internal/_decorators.py</code> by <a
href="https://github.com/misrasaurabh1"><code>@​misrasaurabh1</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9727">#9727</a></li>
</ul>
<h4>Fixes</h4>
<ul>
<li>Replace <code>__spec__.parent</code> with <code>__package__</code>
by <a href="https://github.com/hramezani"><code>@​hramezani</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic/pull/9331">#9331</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/1609e2ada1cd74a6d6afdc34e27c5f81d402928b"><code>1609e2a</code></a>
Prep for v2.8 release (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9806">#9806</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/411dfd896e7f1445e15f4474c62219acf15b9050"><code>411dfd8</code></a>
👥 Update Pydantic People (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9803">#9803</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/e280663fd368aac99f5e9b5a7ad36372ec6e627d"><code>e280663</code></a>
Add Nested Model Field Validation Examples to Docs (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9735">#9735</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/a002e6977d463da80321be91214459f704f14bc0"><code>a002e69</code></a>
Fix Python version check for <code>_eval_type</code> (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9781">#9781</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/e108fd175401b66c669f7e96e6c52c8e8d5efea2"><code>e108fd1</code></a>
Docs updates to prep for v2.8 (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9778">#9778</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/011d8b600681528586374a0967634c938e543ca3"><code>011d8b6</code></a>
Fix documentation formatting (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9779">#9779</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/738b5d71c461eb7579b471f3c79d5c7d2166a6d3"><code>738b5d7</code></a>
Add note about Pipeline API recommended usage (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9777">#9777</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/8a0f3353966b220f62e661c568ccd31dfe81d872"><code>8a0f335</code></a>
Document and test <code>ser_json_inf_nan='strings'</code> variant (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9771">#9771</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/764e14881de27183b3ccfcc4b2dbbe0594000b5f"><code>764e148</code></a>
Preparing for the v2.8.0b1 release! (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9776">#9776</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic/commit/fcd20108b3a3efaeb7038566bd40f570e556fb96"><code>fcd2010</code></a>
<code>validate_call</code> type params fix (<a
href="https://redirect.github.com/pydantic/pydantic/issues/9760">#9760</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pydantic/pydantic/compare/v2.7.0...v2.8.0">compare
view</a></li>
</ul>
</details>
<br />


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 Jul 8, 2024
1 parent bdcbcd3 commit cdc3739
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 87 deletions.
Loading

0 comments on commit cdc3739

Please sign in to comment.