Closed biqqles closed 3 years ago
The referenced commits fix this issue, at least to the point that all tests work. This means that multiple-inheritance use of super()
and overriding normal and magic methods all work as expected. As a bonus, the way attributes are shuffled in DataClassMeta.__new__
is a lot clearer now.
DataClassMeta
currently collects the contents of the inherited classes' dicts and passes this as the dictionary of the new class totype.__new__
. This can preventtype.__new__
from doing method inheritance "correctly" and is the reason this test fails.