Skip to content

Bump cattrs from 26.1.0 to 26.2.0 - #691

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/cattrs-26.2.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/cattrs-26.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Bumps cattrs from 26.1.0 to 26.2.0.

Release notes

Sourced from cattrs's releases.

v26.2.0

What's Changed

  • Fix the msgpack and cbor2 converters unstructuring naive datetimes as local time, which made the serialized value depend on the timezone of the machine doing the unstructuring; naive datetimes are now assumed to be UTC, matching what the structure hooks already read back. (#774 #775)
  • Fix override(rename=...) targets containing a quote (or other characters not safe in a bare string literal) crashing code generation with SyntaxError; the rename key is now embedded with repr. (#771)
  • Fix Counter keys not being unstructured with the key type's own hook; the single-type-arg branch passed the whole type-args tuple to the key hook lookup instead of the key type. (#768)
  • Fix create_default_dis_func (aka create_uniq_field_dis_func) failing to disambiguate valid unions depending on the order of the member classes; unique fields are now resolved iteratively to a fixpoint. (#230 #765)
  • Support more recursive types on 3.14+ with specialized factories for annotationlib.ForwardRef. (#740 #741)
  • Converter now uses specialized hook factories to generate hooks for tuples, increasing speed. (#737)
  • Fix an AttributeError in cattrs internals that could be triggered by using the include_subclasses strategy in a structure_hook_factory (#721, #722)
  • Fix TypedDict codegen when keys contain single quotes. (#769)
  • Add CattrsError exception type: all exceptions raised by cattrs inherit from this. Literal and date-time validation raise this directly, instead of Exception. (#728)
  • Fix the detailed_validation parameter being passed under the wrong name in namedtuple_dict_structure_factory, causing it to be silently ignored. (#723)
  • cattrs is now autoformatted using Ruff. (#732)
  • Support running the test suite without cbor2 installed. (#748)
  • The union passthrough strategy now supports PEP 695 type aliases as union members. (#753)
  • BaseConverter.register_structure_hook_factory and BaseConverter.register_unstructure_hook_factory now properly return the factory when used as decorators. (#724)
  • The msgspec preconf converter now properly handles recursive classes on Python 3.14+. (#757)

New Contributors

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

Changelog

Sourced from cattrs's changelog.

26.2.0 (2026-09-08)

  • Fix the msgpack and cbor2 converters unstructuring naive datetimes as local time, which made the serialized value depend on the timezone of the machine doing the unstructuring; naive datetimes are now assumed to be UTC, matching what the structure hooks already read back. (#774 #775)
  • Fix override(rename=...) targets containing a quote (or other characters not safe in a bare string literal) crashing code generation with SyntaxError; the rename key is now embedded with repr. (#771)
  • Fix Counter keys not being unstructured with the key type's own hook; the single-type-arg branch passed the whole type-args tuple to the key hook lookup instead of the key type. (#768)
  • Fix create_default_dis_func <cattrs.disambiguators.create_default_dis_func> (aka create_uniq_field_dis_func) failing to disambiguate valid unions depending on the order of the member classes; unique fields are now resolved iteratively to a fixpoint. (#230 #765)
  • Support more recursive types on 3.14+ with specialized factories for annotationlib.ForwardRef. (#740 #741)
  • Converter <cattrs.Converter> now uses specialized hook factories to generate hooks for tuples, increasing speed. (#737)
  • Fix an AttributeError in cattrs internals that could be triggered by using the include_subclasses strategy in a structure_hook_factory (#721, #722)
  • Fix TypedDict codegen when keys contain single quotes. (#769)
  • Add CattrsError exception type: all exceptions raised by cattrs inherit from this. Literal and date-time validation raise this directly, instead of Exception. (#728)
  • Fix the detailed_validation parameter being passed under the wrong name in {func}namedtuple_dict_structure_factory <cattrs.cols.namedtuple_dict_structure_factory>, causing it to be silently ignored. (#723)
  • cattrs is now autoformatted using Ruff. (#732)
  • Support running the test suite without cbor2 installed. (#748)
  • The union passthrough strategy now supports PEP 695 type aliases as union members. (#753)
  • {meth}BaseConverter.register_structure_hook_factory and {meth}BaseConverter.register_unstructure_hook_factory now properly return the factory when used as decorators. (#724)
  • The {mod}msgspec <cattrs.preconf.msgspec> preconf converter now properly handles recursive classes on Python 3.14+. (#757)
Commits
  • df4e4bb v26.2.0
  • f7cd6b1 Assume naive datetimes are UTC in the msgpack and cbor2 converters
  • d4ff793 Bump pypa/gh-action-pypi-publish to 1.14.2
  • 671f203 Bump hynek/baipp
  • 893351d Parametrize the special-characters rename test
  • 7a37e00 Add HISTORY entry for the rename-key escaping fix
  • 3d57d6b Escape override rename keys when generating structure/unstructure code
  • f2e42f3 Improve TypedDict key quoting
  • 82b02c0 Add HISTORY entry for Counter key unstructure fix (#768)
  • 02c3ead Unpack the single type arg for Counter keys when unstructuring
  • Additional commits viewable in compare view

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 26.1.0 to 26.2.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@v26.1.0...v26.2.0)

---
updated-dependencies:
- dependency-name: cattrs
  dependency-version: 26.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Sep 15, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

Looks like cattrs is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Sep 24, 2026
@dependabot
dependabot Bot deleted the dependabot/uv/cattrs-26.2.0 branch September 24, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants