Skip to content

Commit

Permalink
Elaborate more on #684
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Sep 5, 2020
1 parent ea04c15 commit 74605de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion changelog.d/684.change.rst
@@ -1 +1,5 @@
The ``inherited`` field of ``attr.Attribute`` (introduced in 20.1.0) instances is not considered when hashing and comparing anymore.
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.

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.

Therefore the ``inherited`` attribute will now be ignored when hashing and comparing instances of ``attr.Attribute``.

0 comments on commit 74605de

Please sign in to comment.