Bump attrs from 20.2.0 to 20.3.0
Bumps attrs from 20.2.0 to 20.3.0.
Release notes
Sourced from attrs's releases.
20.3.0
Backward-incompatible Changes
attr.define(),attr.frozen(),attr.mutable(), andattr.field()remain provisional.This release does not change change anything about them and they are already used widely in production though.
If you wish to use them together with mypy, you can simply drop this plugin into your project.
Feel free to provide feedback to them in the linked issue #668.
We will release the
attrsnamespace once we have the feeling that the APIs have properly settled. #668Changes
attr.s()now has a field_transformer hook that is called for allAttributes and returns a (modified or updated) list ofAttributeinstances.attr.asdict()has a value_serializer hook that can change the way values are converted. Both hooks are meant to help with data (de-)serialization workflows. #653kw_only=Truenow works on Python 2. #700raise fromnow works on frozen classes on PyPy. #703, #712attr.asdict()andattr.astuple()now treatfrozensets likesets with regards to the retain_collection_types argument. #704- The type stubs for
attr.s()andattr.make_class()are not missing the collect_by_mro argument anymore. #711
Changelog
Sourced from attrs's changelog.
20.3.0 (2020-11-05)
Backward-incompatible Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
attr.define(),attr.frozen(),attr.mutable(), andattr.field()remain provisional.This release does not change change anything about them and they are already used widely in production though.
If you wish to use them together with mypy, you can simply drop
this plugin <https://gist.github.com/hynek/1e3844d0c99e479e716169034b5fa963#file-attrs_ng_plugin-py>_ into your project.Feel free to provide feedback to them in the linked issue #668.
We will release the
attrsnamespace once we have the feeling that the APIs have properly settled.[#668](https://github.com/python-attrs/attrs/issues/668) <https://github.com/python-attrs/attrs/issues/668>_Changes ^^^^^^^
attr.s()now has a field_transformer hook that is called for allAttribute\ s and returns a (modified or updated) list ofAttributeinstances.attr.asdict()has a value_serializer hook that can change the way values are converted. Both hooks are meant to help with data (de-)serialization workflows.[#653](https://github.com/python-attrs/attrs/issues/653) <https://github.com/python-attrs/attrs/issues/653>_kw_only=Truenow works on Python 2.[#700](https://github.com/python-attrs/attrs/issues/700) <https://github.com/python-attrs/attrs/issues/700>_raise fromnow works on frozen classes on PyPy.[#703](https://github.com/python-attrs/attrs/issues/703) <https://github.com/python-attrs/attrs/issues/703>,[#712](https://github.com/python-attrs/attrs/issues/712) <https://github.com/python-attrs/attrs/issues/712>attr.asdict()andattr.astuple()now treatfrozenset\ s likeset\ s with regards to the retain_collection_types argument.[#704](https://github.com/python-attrs/attrs/issues/704) <https://github.com/python-attrs/attrs/issues/704>_- The type stubs for
attr.s()andattr.make_class()are not missing the collect_by_mro argument anymore.[#711](https://github.com/python-attrs/attrs/issues/711) <https://github.com/python-attrs/attrs/issues/711>_
Commits
-
f3762baPrepare 20.3.0 -
3d66e57Exclude GitHub issues from linkcheck to avoid rate limits -
06d0f8eAdd funding URLs to metadata -
d23924fAdd provisional notice -
cd2f886Use 'i' and 'k' to better distinguish variables in an example (#713) -
f2dabeaFix exception chaining on PyPy (#712) -
6b4a1f1Tighten up mypy configuration -
9f7d11eAdd types to collect_by_mro annotations m( -
7020c8bpre-commit autoupdate -
56c7308Add missing collect_by_mro to typing stubs - Additional commits viewable in compare view