Sourced from attrs's releases.
22.1.0
Highlights
The main features of this release are:
- The departure of Python 2.7 (enjoy your retirement!),
- and the arrival of Python 3.11.
We had loftier goals feature-wise, but didn't want to block others embracing Python 3.11.
❤️ Huge thanks to my GitHub sponsors, Tidelift subscribers, and Ko-fi buyers! ❤️
None of my projects would exist in their current form without you!
Full Changelog
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. #936
The deprecated
cmp
attribute ofattrs.Attribute
has been removed. This does not affect the cmp argument toattr.s
that can be used as a shortcut to set eq and order at the same time. #939Changes
- Instantiation of frozen slotted classes is now faster. #898
- If an
eq
key is defined, it is also used before hashing the attribute. #909- Added
attrs.validators.min_len()
. #916attrs.validators.deep_iterable()
's member_validator argument now also accepts a list of validators and wraps them in anattrs.validators.and_()
. #925- Added missing type stub re-imports for
attrs.converters
andattrs.filters
. #931- Added missing stub for
attr(s).cmp_using()
. #949attrs.validators._in()
'sValueError
is not missing the attribute, expected options, and the value it got anymore. #951- Python 3.11 is now officially supported. #969
Sourced from attrs's changelog.
22.1.0 (2022-07-28)
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.
[#936](https://github.com/python-attrs/attrs/issues/936) <https://github.com/python-attrs/attrs/issues/936>
_The deprecated
cmp
attribute ofattrs.Attribute
has been removed. This does not affect the cmp argument toattr.s
that can be used as a shortcut to set eq and order at the same time.[#939](https://github.com/python-attrs/attrs/issues/939) <https://github.com/python-attrs/attrs/issues/939>
_Changes ^^^^^^^
- Instantiation of frozen slotted classes is now faster.
[#898](https://github.com/python-attrs/attrs/issues/898) <https://github.com/python-attrs/attrs/issues/898>
_- If an
eq
key is defined, it is also used before hashing the attribute.[#909](https://github.com/python-attrs/attrs/issues/909) <https://github.com/python-attrs/attrs/issues/909>
_- Added
attrs.validators.min_len()
.[#916](https://github.com/python-attrs/attrs/issues/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 anattrs.validators.and_()
.[#925](https://github.com/python-attrs/attrs/issues/925) <https://github.com/python-attrs/attrs/issues/925>
_- Added missing type stub re-imports for
attrs.converters
andattrs.filters
.[#931](https://github.com/python-attrs/attrs/issues/931) <https://github.com/python-attrs/attrs/issues/931>
_- Added missing stub for
attr(s).cmp_using()
.[#949](https://github.com/python-attrs/attrs/issues/949) <https://github.com/python-attrs/attrs/issues/949>
_attrs.validators._in()
'sValueError
is not missing the attribute, expected options, and the value it got anymore.[#951](https://github.com/python-attrs/attrs/issues/951) <https://github.com/python-attrs/attrs/issues/951>
_- Python 3.11 is now officially supported.
[#969](https://github.com/python-attrs/attrs/issues/969) <https://github.com/python-attrs/attrs/issues/969>
_
21.4.0 (2021-12-29)
Changes ^^^^^^^
- Fixed the test suite on PyPy3.8 where
cloudpickle
does not work.[#892](https://github.com/python-attrs/attrs/issues/892) <https://github.com/python-attrs/attrs/issues/892>
_
... (truncated)
b3dfebe
Prepare 22.1.0c89abcd
It totally is correct9f118b7
Tune first stepsa3d7f20
Polish contributing guide899497f
Clarify (c) ownership696fd78
Hyphenate compound adjectives65c0683
Use NG APIs in glossary5d84d9a
Move mypy config to pyproject.toml1590917
Update readme.rst (#986)a67c84f
Add more prominent callout about slots to API docs