Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 13, 2025

Bumps cattrs from 24.1.2 to 25.3.0.

Release notes

Sourced from cattrs's releases.

v25.3.0

  • Potentially breaking: Abstract sets are now structured into frozensets. This allows hashability, better immutability and is more consistent with the collections.abc.Set type. See Migrations for steps to restore legacy behavior. (#686)
  • Python 3.14 is now supported and part of the test matrix. (#653)
  • Fix unstructuring NewTypes with the {class}BaseConverter. (#684)
  • Make some Hypothesis tests more robust. (#684)
  • {func}cattrs.strategies.include_subclasses now works with generic parent classes and the tagged union strategy. (#683)

New Contributors

Full Changelog: python-attrs/cattrs@v25.2.0...v25.3.0

v25.2.0

  • Potentially breaking: Sequences are now structured into tuples. This allows hashability, better immutability and is more consistent with the collections.abc.Sequence type. See Migrations for steps to restore legacy behavior. (#663)
  • Add a use_alias parameter to cattrs.Converter. cattrs.gen.make_dict_unstructure_fn_from_attrs, cattrs.gen.make_dict_unstructure_fn, cattrs.gen.make_dict_structure_fn_from_attrs, cattrs.gen.make_dict_structure_fn and cattrs.gen.typeddicts.make_dict_structure_fn will use the value for the use_alias 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. (#596 #660)
  • The union passthrough strategy 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 current typing behavior. (#656 #668)
  • Fix unstructuring of generic classes with stringified annotations. (#661 #662)
  • For cattrs.errors.StructureHandlerNotFoundError and cattrs.errors.ForbiddenExtraKeysError correctly set BaseException.args in super() and hence make them pickable. (#666)
  • The default disambiguation hook factory is now only enabled for converters with unstructure_strat=AS_DICT (the default). Since the strategy doesn't support tuples, it is skipped for unstructure_strat=AS_TUPLE converters. (#673)
  • Switch to uv and just in lieu of PDM, tox and Make. See the Contributing section for new workflow instructions. (#671)

New Contributors

Full Changelog: python-attrs/cattrs@v25.1.1...v25.2.0

v25.1.1

  • Fixed AttributeError: no attribute '__parameters__' while structuring attrs classes that inherit from parametrized generic aliases from collections.abc. (#654 #655)

v25.1.0

  • Potentially breaking: The converters raise StructureHandlerNotFoundError more eagerly (on hook creation, instead of on hook use). This helps surfacing problems with missing hooks sooner. See Migrations for steps to restore legacy behavior. (#577)
  • Add a Migrations page, with instructions on migrating changed behavior for each version. (#577)
  • typing.Self is now supported in attrs classes, dataclasses, TypedDicts and the dict NamedTuple factories. See typing.Self for details. (#299 #627)
  • PEP 695 type aliases can now be used with BaseConverter.register_structure_hook and BaseConverter.register_unstructure_hook. Previously, they required the use of BaseConverter.register_structure_hook_func (which is still supported). (#647)
  • Expose cattrs.cols.mapping_unstructure_factory through cattrs.cols.

... (truncated)

Changelog

Sourced from cattrs's changelog.

25.3.0 (2025-10-07)

  • Potentially breaking: Abstract sets are now structured into frozensets. This allows hashability, better immutability and is more consistent with the collections.abc.Set type. See Migrations for steps to restore legacy behavior. (#686)
  • Python 3.14 is now supported and part of the test matrix. (#653)
  • Fix unstructuring NewTypes with the {class}BaseConverter. (#684)
  • Make some Hypothesis tests more robust. (#684)
  • {func}cattrs.strategies.include_subclasses now works with generic parent classes and the tagged union strategy. (#683)

25.2.0 (2025-08-31)

  • Potentially breaking: Sequences are now structured into tuples. This allows hashability, better immutability and is more consistent with the collections.abc.Sequence type. See Migrations for steps to restore legacy behavior. (#663)
  • Add a use_alias parameter to {class}cattrs.Converter. {func}cattrs.gen.make_dict_unstructure_fn_from_attrs, {func}cattrs.gen.make_dict_unstructure_fn, {func}cattrs.gen.make_dict_structure_fn_from_attrs, {func}cattrs.gen.make_dict_structure_fn and {func}cattrs.gen.typeddicts.make_dict_structure_fn will use the value for the use_alias 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. (#596 #660)
  • The union passthrough strategy 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 current typing behavior. (#656 #668)
  • Fix unstructuring of generic classes with stringified annotations. (#661 #662
  • For {class}cattrs.errors.StructureHandlerNotFoundError and {class}cattrs.errors.ForbiddenExtraKeysError correctly set {attr}BaseException.args in super() and hence make them pickable. (#666)
  • The default disambiguation hook factory is now only enabled for converters with unstructure_strat=AS_DICT (the default). Since the strategy doesn't support tuples, it is skipped for unstructure_strat=AS_TUPLE converters. (#673)
  • Switch to uv and just in lieu of PDM, tox and Make. See the Contributing section for new workflow instructions. (#671)

25.1.1 (2025-06-04)

  • Fixed AttributeError: no attribute '__parameters__' while structuring attrs classes that inherit from parametrized generic aliases from collections.abc. (#654 #655)

25.1.0 (2025-05-31)

... (truncated)

Commits
  • f8663b3 v25.3.0
  • 88af007 Enable Python 3.14 (#653)
  • 5a1bb1a Split test_baseconverter.py::test_310_union_field_roundtrip into two to mak...
  • f0c0a53 Structure abstract sets to frozensets (#686)
  • 64f6305 Fix include_subclasses strategy with a generic parent and tagged_union (backp...
  • 75bfffa Improve Hypothesis test robustness (#684)
  • 727aa89 v25.2.0
  • 7943a6a Added missing imports to hook factory decorator example. (#677)
  • 3e242bf Update coverage, use the new run.patch setting (#676)
  • 53fb451 Introduce Justfile, use uv (#671)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [cattrs](https://github.com/python-attrs/cattrs) from 24.1.2 to 25.3.0.
- [Release notes](https://github.com/python-attrs/cattrs/releases)
- [Changelog](https://github.com/python-attrs/cattrs/blob/main/HISTORY.md)
- [Commits](python-attrs/cattrs@v24.1.2...v25.3.0)

---
updated-dependencies:
- dependency-name: cattrs
  dependency-version: 25.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 13, 2025

Labels

The following labels could not be found: Task. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions github-actions bot enabled auto-merge October 13, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant