UNCLASSIFIED - NO CUI

Skip to content

Update dependency attrs to v22

renovate requested to merge renovate/attrs-22.x into development

This MR contains the following updates:

Package Update Change
attrs (source, changelog) major ==21.4.0 -> ==22.1.0

Release Notes

python-attrs/attrs

v22.1.0

Compare Source

Backwards-incompatible Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Python 2.7 is not supported anymore.

    Dealing with Python 2.7 tooling has become too difficult for a volunteer-run project.

    We have supported Python 2 more than 2 years after it was officially discontinued and feel that we have paid our dues. All version up to 21.4.0 from December 2021 remain fully functional, of course. #&#8203;936 <https://github.com/python-attrs/attrs/issues/936>_

  • The deprecated cmp attribute of attrs.Attribute has been removed. This does not affect the cmp argument to attr.s that can be used as a shortcut to set eq and order at the same time. #&#8203;939 <https://github.com/python-attrs/attrs/issues/939>_

Changes ^^^^^^^

  • Instantiation of frozen slotted classes is now faster. #&#8203;898 <https://github.com/python-attrs/attrs/issues/898>_
  • If an eq key is defined, it is also used before hashing the attribute. #&#8203;909 <https://github.com/python-attrs/attrs/issues/909>_
  • Added attrs.validators.min_len(). #&#8203;916 <https://github.com/python-attrs/attrs/issues/916>_
  • attrs.validators.deep_iterable()'s member_validator argument now also accepts a list of validators and wraps them in an attrs.validators.and_(). #&#8203;925 <https://github.com/python-attrs/attrs/issues/925>_
  • Added missing type stub re-imports for attrs.converters and attrs.filters. #&#8203;931 <https://github.com/python-attrs/attrs/issues/931>_
  • Added missing stub for attr(s).cmp_using(). #&#8203;949 <https://github.com/python-attrs/attrs/issues/949>_
  • attrs.validators._in()'s ValueError is not missing the attribute, expected options, and the value it got anymore. #&#8203;951 <https://github.com/python-attrs/attrs/issues/951>_
  • Python 3.11 is now officially supported. #&#8203;969 <https://github.com/python-attrs/attrs/issues/969>_


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

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


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports

Loading