This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients Epic_Wink, eric.smith, jack1142, kamilturek, rhettinger, ryanhiebert, xtreak
Date 2021-04-27.18:21:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Will this close ?

No, not directly, although I'm going to close that issue as "won't fix".

But you can specify that the child class requires all params as kw_only. Continuing the example:

>>> @dataclass(kw_only=True)
... class Child(Parent):
...   y: int
>>> Child(0, y=1)
Child(x=0, y=1)
Date User Action Args
2021-04-27 18:21:29eric.smithsetrecipients: + eric.smith, rhettinger, ryanhiebert, xtreak, Epic_Wink, jack1142, kamilturek
2021-04-27 18:21:29eric.smithsetmessageid: <>
2021-04-27 18:21:29eric.smithlinkissue43532 messages
2021-04-27 18:21:29eric.smithcreate