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
+40-6Lines changed: 40 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,50 @@ Changelog
4
4
Versions follow `CalVer <https://calver.org>`_ with a strict backwards compatibility policy.
5
5
The third digit is only for regressions.
6
6
7
-
Changes for the upcoming release can be found in the `"changelog.d" directory <https://github.com/python-attrs/attrs/tree/master/changelog.d>`_ in our repository.
7
+
.. towncrier release notes start
8
8
9
-
..
10
-
Do *NOT* add changelog entries here!
9
+
19.1.0 (2019-03-03)
10
+
-------------------
11
11
12
-
This changelog is managed by towncrier and is compiled at release time.
12
+
Backward-incompatible Changes
13
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14
14
-
See https://www.attrs.org/en/latest/contributing.html#changelog for details.
15
+
- Fixed a bug where deserialized objects with ``cache_hash=True`` could have incorrect hash code values.
16
+
This change breaks classes with ``cache_hash=True`` when a custom ``__setstate__`` is present.
17
+
An exception will be thrown when applying the ``attrs`` annotation to such a class.
18
+
This limitation is tracked in issue `#494 <https://github.com/python-attrs/attrs/issues/494>`_.
- ``attrs`` now has first class support for defining exception classes.
42
+
43
+
If you define a class using ``@attr.s(auto_exc=True)`` and subclass an exception, the class will behave like a well-behaved exception class including an appropriate ``__str__`` method, and all attributes additionally available in an ``args`` attribute.
0 commit comments