Skip to content

Update dependency cattrs to v26 - #1147

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cattrs-26.x
Open

Update dependency cattrs to v26#1147
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cattrs-26.x

Conversation

@renovate

@renovate renovate Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cattrs (changelog) ==25.2.0==26.1.0 age confidence

Release Notes

python-attrs/cattrs (cattrs)

v26.1.0

Compare Source

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

v25.3.0

Compare Source

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

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch from 1f5f556 to e0be1bb Compare April 16, 2026 18:02
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch 29 times, most recently from e7192a9 to a83067f Compare May 1, 2026 16:01
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch 8 times, most recently from e61c59d to 74eff68 Compare May 17, 2026 06:10
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch 6 times, most recently from 0d727b3 to 0a3752d Compare July 2, 2026 16:11
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch 9 times, most recently from ee74b33 to 02a188b Compare July 17, 2026 17:52
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch 5 times, most recently from f81fa29 to f2e4a5e Compare July 21, 2026 23:22
@renovate
renovate Bot force-pushed the renovate/cattrs-26.x branch from f2e4a5e to 3fc40db Compare August 15, 2026 20:17
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