For a dataclass in #Python, the insertion order of inherited fields into the dataclass is the reverse of MRO, so if parent class has a default argument, child class cannot have non-default arguments.

Dec 1, 2022 · 11:12 PM UTC

1