Skip to content

Commit 74605de

Browse files
committed
Elaborate more on #684
1 parent ea04c15 commit 74605de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

changelog.d/684.change.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
The ``inherited`` field of ``attr.Attribute`` (introduced in 20.1.0) instances is not considered when hashing and comparing anymore.
1+
In 20.1.0 we introduced the ``inherited`` attribute on the ``attr.Attribute`` class to differentiate attributes that have been inherited and those that have been defined directly on the class.
2+
3+
It has shown to be problematic to involve that attribute when comparing instances of ``attr.Attribute`` though, because when sub-classing, attributes from base classes are suddenly not equal to themselves in a super class.
4+
5+
Therefore the ``inherited`` attribute will now be ignored when hashing and comparing instances of ``attr.Attribute``.

0 commit comments

Comments
 (0)