diff --git a/changelog.d/684.change.rst b/changelog.d/684.change.rst index c8dc8cea6..bc186f0ae 100644 --- a/changelog.d/684.change.rst +++ b/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``.