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-6Lines changed: 66 additions & 6 deletions
Display the source diff
Display the rich diff
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.
As of this release, you can finally import ``attrs`` using its proper name.
36
+
37
+
Not all names from the ``attr`` namespace have been transferred; most notably ``attr.s`` and ``attr.ib`` are missing.
38
+
See ``attrs.define`` and ``attrs.field`` if you haven't seen our next-generation APIs yet.
39
+
A more elaborate explanation can be found `On The Core API Names <https://www.attrs.org/en/latest/names.html>`_
40
+
41
+
This feature is at least for one release **provisional**.
42
+
We don't *plan* on changing anything, but such a big change is unlikely to go perfectly on the first strike.
43
+
44
+
The API docs have been mostly updated, but it will be an ongoing effort to change everything to the new APIs.
45
+
Please note that we have **not** moved -- or even removed -- anything from ``attr``!
46
+
47
+
Please do report any bugs or documentation inconsistencies!
- 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