Author Кирилл Чуркин
Recipients Кирилл Чуркин
Date 2019-02-22.12:27:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I found a problem when use inherit dataclasses.
When I define parent dataclass with field(s) with default (or default_factory) properties, and inherit child dataclass from parent, i define non-default field in it and got `TypeError('non-default argument {!r} follows default argument')` in It happens because dataclass constructor defines all parent class fields as arguments in __init__ class and then all child class fields.
Maybe it need to define all non-default fields in init before all default.
Date User Action Args
2019-02-22 12:27:13Кирилл Чуркинsetrecipients: + Кирилл Чуркин
2019-02-22 12:27:13Кирилл Чуркинsetmessageid: <>
2019-02-22 12:27:13Кирилл Чуркинlinkissue36077 messages
2019-02-22 12:27:13Кирилл Чуркинcreate