Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip(deps): bump cattrs from 23.2.3 to 24.1.2 #398

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 23, 2024

Bumps cattrs from 23.2.3 to 24.1.2.

Release notes

Sourced from cattrs's releases.

v24.1.2

  • Fix BaseConverter.register_structure_hook and BaseConverter.register_unstructure_hook type hints. (#581 #582)

24.1.1 (2024-09-11)

  • Fix BaseConverter.register_structure_hook_factory and BaseConverter.register_unstructure_hook_factory type hints. (#578 #579)

24.1.0

  • Potentially breaking: Unstructuring hooks for typing.Any are consistent now: values are unstructured using their runtime type. Previously this behavior was underspecified and inconsistent, but followed this rule in the majority of cases. Reverting old behavior is very dependent on the actual case; ask on the issue tracker if in doubt. (#473)
  • Minor change: Heterogeneous tuples are now unstructured into tuples instead of lists by default; this is significantly faster and widely supported by serialization libraries. (#486)
  • Minor change: cattrs.gen.make_dict_structure_fn will use the value for the prefer_attrib_converters parameter from the given converter by default now. If you're using this function directly, the old behavior can be restored by passing in the desired values explicitly. (#527 #528)
  • Introduce BaseConverter.get_structure_hook and BaseConverter.get_unstructure_hook methods. (#432 #472)
  • BaseConverter.register_structure_hook, BaseConverter.register_unstructure_hook, BaseConverter.register_unstructure_hook_factory and BaseConverter.register_structure_hook_factory can now be used as decorators and have gained new features. See here and here for more details. (#487)
  • Introduce and document the cattrs.cols module for better collection customizations. (#504 #540)
  • Enhance the cattrs.cols.is_mapping predicate function to also cover virtual subclasses of abc.Mapping. This enables map classes from libraries such as immutables or sortedcontainers to structure out-of-the-box. (#555 #556)
  • Introduce the msgspec preconf converter <cattrs.preconf.msgspec>. Only JSON is supported for now, with other formats supported by msgspec to come later. (#481)
  • The default union handler now properly takes renamed fields into account. (#472)
  • The default union handler now also handles dataclasses. (#426 #477)
  • Add support for PEP 695 type aliases. (#452)
  • Add support for PEP 696 TypeVars with defaults. (#512)
  • Add support for named tuples with type metadata (typing.NamedTuple). (#425 #491)
  • Add support for optionally un/unstructuring named tuples using dictionaries. (#425 #549)
  • The include_subclasses strategy now fetches the member hooks from the converter (making use of converter defaults) if overrides are not provided, instead of generating new hooks with no overrides. (#429 #472)
  • The preconf make_converter factories are now correctly typed. (#481)

... (truncated)

Changelog

Sourced from cattrs's changelog.

24.1.2 (2024-09-22)

  • Fix {meth}BaseConverter.register_structure_hook and {meth}BaseConverter.register_unstructure_hook type hints. (#581 #582)

24.1.1 (2024-09-11)

  • Fix {meth}BaseConverter.register_structure_hook_factory and {meth}BaseConverter.register_unstructure_hook_factory type hints. (#578 #579)

24.1.0 (2024-08-28)

  • Potentially breaking: Unstructuring hooks for typing.Any are consistent now: values are unstructured using their runtime type. Previously this behavior was underspecified and inconsistent, but followed this rule in the majority of cases. Reverting old behavior is very dependent on the actual case; ask on the issue tracker if in doubt. (#473)
  • Minor change: Heterogeneous tuples are now unstructured into tuples instead of lists by default; this is significantly faster and widely supported by serialization libraries. (#486)
  • Minor change: {py:func}cattrs.gen.make_dict_structure_fn will use the value for the prefer_attrib_converters parameter from the given converter by default now. If you're using this function directly, the old behavior can be restored by passing in the desired values explicitly. (#527 #528)
  • Introduce {meth}BaseConverter.get_structure_hook and {meth}BaseConverter.get_unstructure_hook methods. (#432 #472)
  • {meth}BaseConverter.register_structure_hook, {meth}BaseConverter.register_unstructure_hook, {meth}BaseConverter.register_unstructure_hook_factory and {meth}BaseConverter.register_structure_hook_factory can now be used as decorators and have gained new features. See here and here for more details. (#487)
  • Introduce and document the {mod}cattrs.cols module for better collection customizations. (#504 #540)
  • Enhance the {func}cattrs.cols.is_mapping predicate function to also cover virtual subclasses of abc.Mapping. This enables map classes from libraries such as immutables or sortedcontainers to structure out-of-the-box. (#555 #556)
  • Introduce the msgspec {mod}preconf converter <cattrs.preconf.msgspec>. Only JSON is supported for now, with other formats supported by msgspec to come later. (#481)
  • The default union handler now properly takes renamed fields into account. (#472)
  • The default union handler now also handles dataclasses. (#426 #477)
  • Add support for PEP 695 type aliases. (#452)
  • Add support for PEP 696 TypeVars with defaults. (#512)
  • Add support for named tuples with type metadata (typing.NamedTuple). (#425 #491)
  • Add support for optionally un/unstructuring named tuples using dictionaries. (#425 #549)
  • The include_subclasses strategy now fetches the member hooks from the converter (making use of converter defaults) if overrides are not provided, instead of generating new hooks with no overrides. (#429 #472)

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

Bumps [cattrs](https://github.com/python-attrs/cattrs) from 23.2.3 to 24.1.2.
- [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...v24.1.2)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the debt Technical debt or repo cleanup label Sep 23, 2024
@github-actions github-actions bot enabled auto-merge (squash) September 23, 2024 19:49
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 4, 2024

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

@dependabot dependabot bot closed this Oct 4, 2024
auto-merge was automatically disabled October 4, 2024 20:09

Pull request was closed

@dependabot dependabot bot deleted the dependabot/pip/cattrs-24.1.2 branch October 4, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt or repo cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants