On 1/2/2018 12:01 AM, Guido van Rossum wrote:Yes, there's a class variable (__dataclass_fields__) that identifies the parent fields. The PEP doesn't mention this or the fact that special methods (like __repr__ and __init__) can tell whether a base class is a dataclass. It probably should though. (@Eric)
I think that's covered in this section: https://www.python.org/dev/peps/pep-0557/#inheritance