Skip to content

chore(deps): bump cattrs from 23.2.3 to 26.1.0 in /sdk/python#1300

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/sdk/python/cattrs-26.1.0
Open

chore(deps): bump cattrs from 23.2.3 to 26.1.0 in /sdk/python#1300
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/sdk/python/cattrs-26.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 1, 2026

Copy link
Copy Markdown

Bumps cattrs from 23.2.3 to 26.1.0.

Release notes

Sourced from cattrs's releases.

v26.1.0

  • Add the tomllib preconf converter. See here for details. (#716)
  • Customizing un/structuring of attrs classes, dataclasses, TypedDicts and dict NamedTuples is now possible by using Annotated[T, override()] on fields. See here for more details. (#717)
  • Fix structuring of nested generic classes with stringified annotations. (#688)
  • Python 3.9 is no longer supported, as it is end-of-life. Use previous versions on this Python version. (#698)
  • Apply the attrs converter to the default value before checking if it is equal to the attribute's value, when omit_if_default is true and an attrs converter is specified. (#696)
  • Use the optional _value_ type hint to structure and unstructure enums if present. (#699)
  • Aliases (when in use) now properly generate rename metadata in generated hooks. (#706 #710)
  • cattrs now tracks performance using codspeed. (#703)
  • The tomlkit preconf converter now properly handles native date objects when structuring. (#707 #708)
  • The tomlkit preconf converter now passes date objects directly to tomlkit for unstructuring. (#707 #708)
  • Enum handling has been optimized by switching to hook factories, improving performance especially for plain enums. (#705)
  • Fix cattrs.strategies.include_subclasses when used with cattrs.strategies.configure_tagged_union and classes using diamond inheritance. (#685 #713)
  • Fix cattrs.strategies.configure_tagged_union when used with recursive type aliases. (#678 #714)

New Contributors

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

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).

... (truncated)

Changelog

Sourced from cattrs's changelog.

26.1.0 (2026-02-18)

  • Add the {mod}tomllib <cattrs.preconf.tomllib> preconf converter. See here for details. (#716)
  • Customizing un/structuring of attrs classes, dataclasses, TypedDicts and dict NamedTuples is now possible by using Annotated[T, override()] on fields. See here for more details. (#717)
  • Fix structuring of nested generic classes with stringified annotations. (#688)
  • Python 3.9 is no longer supported, as it is end-of-life. Use previous versions on this Python version. (#698)
  • Apply the attrs converter to the default value before checking if it is equal to the attribute's value, when omit_if_default is true and an attrs converter is specified. (#696)
  • Use the optional _value_ type hint to structure and unstructure enums if present. (#699)
  • Aliases (when in use) now properly generate rename metadata in generated hooks. (#706 #710)
  • cattrs now tracks performance using codspeed. (#703)
  • The {mod}tomlkit <cattrs.preconf.tomlkit> preconf converter now properly handles native date objects when structuring. (#707 #708)
  • The {mod}tomlkit <cattrs.preconf.tomlkit> preconf converter now passes date objects directly to tomlkit for unstructuring. (#707 #708)
  • Enum handling has been optimized by switching to hook factories, improving performance especially for plain enums. (#705)
  • Fix {func}cattrs.strategies.include_subclasses when used with {func}cattrs.strategies.configure_tagged_union and classes using diamond inheritance. (#685 #713)
  • Fix {func}cattrs.strategies.configure_tagged_union when used with recursive type aliases. (#678 #714)

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.

... (truncated)

Commits

Dependabot compatibility score

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 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 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)

Bumps [cattrs](https://github.com/python-attrs/cattrs) from 23.2.3 to 26.1.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@v23.2.3...v26.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jul 1, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: kind/dependencies, sdk/python. Please create them before Dependabot can add them to a pull request.

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

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.

0 participants