Commit e92b9eb
authored
chore(deps): Update cattrs requirement from <25.2,>=1.8 to >=1.8,<25.3 in /packages/@jsii/python-runtime (#4897)
Updates the requirements on [cattrs](https://github.com/python-attrs/cattrs) to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/cattrs/releases">cattrs's releases</a>.</em></p>
<blockquote>
<h2>v25.2.0</h2>
<ul>
<li><strong>Potentially breaking</strong>: Sequences are now structured into tuples.
This allows hashability, better immutability and is more consistent with the <a href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence"><code>collections.abc.Sequence</code></a> type. See <a href="https://catt.rs/en/latest/migrations.html#sequences-structuring-into-tuples">Migrations</a> for steps to restore legacy behavior. (<a href="https://redirect.github.com/python-attrs/cattrs/pull/663">#663</a>)</li>
<li>Add a <code>use_alias</code> parameter to <code>cattrs.Converter</code>.
<code>cattrs.gen.make_dict_unstructure_fn_from_attrs</code>, <code>cattrs.gen.make_dict_unstructure_fn</code>,
<code>cattrs.gen.make_dict_structure_fn_from_attrs</code>, <code>cattrs.gen.make_dict_structure_fn</code>
and <code>cattrs.gen.typeddicts.make_dict_structure_fn</code> will use the value for the <code>use_alias</code> parameter from the given converter by default now. If you're using these functions directly, the old behavior can be restored by passing in the desired value directly. (<a href="https://redirect.github.com/python-attrs/cattrs/issues/596">#596</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/660">#660</a>)</li>
<li>The <a href="https://catt.rs/en/stable/strategies.html#union-passthrough">union passthrough strategy</a> now by default accepts ints for unions that contain floats but not ints,
when configured to be able to handle both ints and floats. This more closely matches the <a href="https://typing.python.org/en/latest/spec/special-types.html#special-cases-for-float-and-complex">current typing behavior</a>. (<a href="https://redirect.github.com/python-attrs/cattrs/issues/656">#656</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/668">#668</a>)</li>
<li>Fix unstructuring of generic classes with stringified annotations. (<a href="https://redirect.github.com/python-attrs/cattrs/issues/661">#661</a> <a href="https://redirect.github.com/python-attrs/cattrs/issues/662">#662</a>)</li>
<li>For <code>cattrs.errors.StructureHandlerNotFoundError</code> and <code>cattrs.errors.ForbiddenExtraKeysError</code>
correctly set <code>BaseException.args</code> in <code>super()</code> and hence make them pickable. (<a href="https://redirect.github.com/python-attrs/cattrs/pull/666">#666</a>)</li>
<li>The default disambiguation hook factory is now only enabled for converters with <code>unstructure_strat=AS_DICT</code> (the default).
Since the strategy doesn't support tuples, it is skipped for <code>unstructure_strat=AS_TUPLE</code> converters. (<a href="https://redirect.github.com/python-attrs/cattrs/pull/673">#673</a>)</li>
<li>Switch to <a href="https://docs.astral.sh/uv/"><code>uv</code></a> and <a href="https://just.systems/man/en/"><code>just</code></a> in lieu of PDM, tox and Make. See <a href="https://catt.rs/en/v25.2.0/contributing.html#get-started">the Contributing section</a> for new workflow instructions. (<a href="https://redirect.github.com/python-attrs/cattrs/pull/671">#671</a>)</li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/hoodmane"><code>@hoodmane</code></a> made their first contribution in <a href="https://redirect.github.com/python-attrs/cattrs/pull/665">python-attrs/cattrs#665</a></li>
<li><a href="https://github.com/carltongibson"><code>@carltongibson</code></a> made their first contribution in <a href="https://redirect.github.com/python-attrs/cattrs/pull/677">python-attrs/cattrs#677</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/python-attrs/cattrs/compare/v25.1.1...v25.2.0">https://github.com/python-attrs/cattrs/compare/v25.1.1...v25.2.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/cattrs/blob/main/HISTORY.md">cattrs's changelog</a>.</em></p>
<blockquote>
<h2>25.2.0 (2025-08-31)</h2>
<ul>
<li><strong>Potentially breaking</strong>: Sequences are now structured into tuples.
This allows hashability, better immutability and is more consistent with the <a href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence"><code>collections.abc.Sequence</code></a> type.
See <a href="https://catt.rs/en/latest/migrations.html#sequences-structuring-into-tuples">Migrations</a> for steps to restore legacy behavior.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/663">#663</a>)</li>
<li>Add a <code>use_alias</code> parameter to {class}<code>cattrs.Converter</code>.
{func}<code>cattrs.gen.make_dict_unstructure_fn_from_attrs</code>, {func}<code>cattrs.gen.make_dict_unstructure_fn</code>,
{func}<code>cattrs.gen.make_dict_structure_fn_from_attrs</code>, {func}<code>cattrs.gen.make_dict_structure_fn</code>
and {func}<code>cattrs.gen.typeddicts.make_dict_structure_fn</code> will use the value for the <code>use_alias</code> parameter from the given converter by default now.
If you're using these functions directly, the old behavior can be restored by passing in the desired value directly.
(<a href="https://redirect.github.com/python-attrs/cattrs/issues/596">#596</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/660">#660</a>)</li>
<li>The <a href="https://catt.rs/en/stable/strategies.html#union-passthrough">union passthrough strategy</a> now by default accepts ints for unions that contain floats but not ints,
when configured to be able to handle both ints and floats.
This more closely matches the <a href="https://typing.python.org/en/latest/spec/special-types.html#special-cases-for-float-and-complex">current typing behavior</a>.
(<a href="https://redirect.github.com/python-attrs/cattrs/issues/656">#656</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/668">#668</a>)</li>
<li>Fix unstructuring of generic classes with stringified annotations.
(<a href="https://redirect.github.com/python-attrs/cattrs/issues/661">#661</a> <a href="https://redirect.github.com/python-attrs/cattrs/issues/662">#662</a></li>
<li>For {class}<code>cattrs.errors.StructureHandlerNotFoundError</code> and {class}<code>cattrs.errors.ForbiddenExtraKeysError</code>
correctly set {attr}<code>BaseException.args</code> in <code>super()</code> and hence make them pickable.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/666">#666</a>)</li>
<li>The default disambiguation hook factory is now only enabled for converters with <code>unstructure_strat=AS_DICT</code> (the default).
Since the strategy doesn't support tuples, it is skipped for <code>unstructure_strat=AS_TUPLE</code> converters.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/673">#673</a>)</li>
<li>Switch to <a href="https://docs.astral.sh/uv/"><code>uv</code></a> and <a href="https://just.systems/man/en/"><code>just</code></a> in lieu of PDM, tox and Make.
See <a href="https://catt.rs/en/v25.2.0/contributing.html#get-started">the Contributing section</a> for new workflow instructions.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/671">#671</a>)</li>
</ul>
<h2>25.1.1 (2025-06-04)</h2>
<ul>
<li>Fixed <code>AttributeError: no attribute '__parameters__'</code> while structuring attrs classes that inherit from parametrized generic aliases from <code>collections.abc</code>.
(<a href="https://redirect.github.com/python-attrs/cattrs/issues/654">#654</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/655">#655</a>)</li>
</ul>
<h2>25.1.0 (2025-05-31)</h2>
<ul>
<li><strong>Potentially breaking</strong>: The converters raise {class}<code>StructureHandlerNotFoundError</code> more eagerly (on hook creation, instead of on hook use).
This helps surfacing problems with missing hooks sooner.
See <a href="https://catt.rs/en/latest/migrations.html#the-default-structure-hook-fallback-factory">Migrations</a> for steps to restore legacy behavior.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/577">#577</a>)</li>
<li>Add a <a href="https://catt.rs/en/latest/migrations.html">Migrations</a> page, with instructions on migrating changed behavior for each version.
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/577">#577</a>)</li>
<li><a href="https://docs.python.org/3/library/typing.html#typing.Self"><code>typing.Self</code></a> is now supported in <em>attrs</em> classes, dataclasses, TypedDicts and the dict NamedTuple factories.
See <a href="https://catt.rs/en/latest/defaulthooks.html#typing-self"><code>typing.Self</code></a> for details.
(<a href="https://redirect.github.com/python-attrs/cattrs/issues/299">#299</a> <a href="https://redirect.github.com/python-attrs/cattrs/pull/627">#627</a>)</li>
<li>PEP 695 type aliases can now be used with {meth}<code>BaseConverter.register_structure_hook</code> and {meth}<code>BaseConverter.register_unstructure_hook</code>.
Previously, they required the use of {meth}<code>BaseConverter.register_structure_hook_func</code> (which is still supported).
(<a href="https://redirect.github.com/python-attrs/cattrs/pull/647">#647</a>)</li>
<li>Expose {func}<code>cattrs.cols.mapping_unstructure_factory</code> through {mod}<code>cattrs.cols</code>.</li>
<li>Some <code>defaultdicts</code> are now <a href="https://catt.rs/en/latest/defaulthooks.html#defaultdicts">supported by default</a>, and
{func}<code>cattrs.cols.is_defaultdict</code> and {func}<code>cattrs.cols.defaultdict_structure_factory</code> are exposed through {mod}<code>cattrs.cols</code>.</li>
</ul>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/cattrs/commit/727aa894d48bbd31ed1923627ed160a90932d077"><code>727aa89</code></a> v25.2.0</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/7943a6a80fc0ec3a03468dd4c4eff123620625ad"><code>7943a6a</code></a> Added missing imports to hook factory decorator example. (<a href="https://redirect.github.com/python-attrs/cattrs/issues/677">#677</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/3e242bf41e60ecc91b25bf5c7700e39161817775"><code>3e242bf</code></a> Update coverage, use the new <code>run.patch</code> setting (<a href="https://redirect.github.com/python-attrs/cattrs/issues/676">#676</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/53fb4519e1a48db6b2a35e2761eb78414c5fc17c"><code>53fb451</code></a> Introduce Justfile, use uv (<a href="https://redirect.github.com/python-attrs/cattrs/issues/671">#671</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/5d23a08c2bb4a8594ed5e785afa119e3df091d0d"><code>5d23a08</code></a> Bump test dependencies (<a href="https://redirect.github.com/python-attrs/cattrs/issues/673">#673</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/5b18ffd7b43566b0fdb8d42e8f68fb0c3299714d"><code>5b18ffd</code></a> Update dev dependencies (<a href="https://redirect.github.com/python-attrs/cattrs/issues/672">#672</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/025f5215038960e3bda0640058421b6ed66f313a"><code>025f521</code></a> union passthrough: add <code>accept_ints_as_floats</code> (<a href="https://redirect.github.com/python-attrs/cattrs/issues/668">#668</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/591b4f77bec5a69845294226b2670195b82ec997"><code>591b4f7</code></a> Make <code>ForbiddenExtraKeysError.__str__</code> deterministic (<a href="https://redirect.github.com/python-attrs/cattrs/issues/670">#670</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/f5d059452179c960df6d09015aa166bc50ad4bcb"><code>f5d0594</code></a> (errors) Correctly set <code>BaseException.args</code> and make them pickable (<a href="https://redirect.github.com/python-attrs/cattrs/issues/666">#666</a>)</li>
<li><a href="https://github.com/python-attrs/cattrs/commit/bc325a88b761b57be716eadcd51b5e0e0bb12afd"><code>bc325a8</code></a> DOCS: Fix version for "default structure hook fallback factory" migration (<a href="https://redirect.github.com/python-attrs/cattrs/issues/665">#665</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/cattrs/compare/v1.8.0...v25.2.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>1 parent 464fe6c commit e92b9eb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments