You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+66-6
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,76 @@ Whenever there is a need to break compatibility, it is announced here in the cha
17
17
18
18
However if you intend to build extensions on top of ``attrs`` you have to anticipate that.
19
19
20
-
Changes for the upcoming release can be found in the `"changelog.d" directory <https://github.com/python-attrs/attrs/tree/main/changelog.d>`_ in our repository.
20
+
.. towncrier release notes start
21
21
22
-
..
23
-
Do *NOT* add changelog entries here!
22
+
21.3.0 (2021-12-28)
23
+
-------------------
24
24
25
-
This changelog is managed by towncrier and is compiled at release time.
25
+
Backward-incompatible Changes
26
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27
27
-
See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#changelog for details.
28
+
- When using ``@define``, converters are now run by default when setting an attribute on an instance -- additionally to validators.
29
+
I.e. the new default is ``on_setattr=[attrs.setters.convert, attrs.setters.validate]``.
30
+
31
+
This is unfortunately a breaking change, but it was an oversight, impossible to raise a ``DeprecationWarning`` about, and it's better to fix it now while the APIs are very fresh with few users.
- If the class-level *on_setattr* is set to ``attrs.setters.validate`` (default in ``@define`` and ``@mutable``) but no field defines a validator, pretend that it's not set.
- ``attrs`` classes are now fully compatible with `cloudpickle <https://github.com/cloudpipe/cloudpickle>`_ (no need to disable ``repr`` anymore).
0 commit comments