Author eric.smith
Recipients eric.smith
Date 2021-03-19.14:47:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616165238.01.0.0594716110393.issue43558@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/library/dataclasses.html#post-init-processing should mention that if you need to call super().__init__, you should do it in __post_init__. Dataclasses cannot know what parameters to pass to the super class's __init__, so you'll need to do it yourself manually in __post_init__.
History
Date User Action Args
2021-03-19 14:47:18eric.smithsetrecipients: + eric.smith
2021-03-19 14:47:18eric.smithsetmessageid: <1616165238.01.0.0594716110393.issue43558@roundup.psfhosted.org>
2021-03-19 14:47:17eric.smithlinkissue43558 messages
2021-03-19 14:47:17eric.smithcreate