New submission from Eric V. Smith <e...@trueblade.com>:
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__. ---------- assignee: eric.smith components: Documentation messages: 389097 nosy: eric.smith priority: low severity: normal stage: needs patch status: open title: The dataclasses documentation should mention how to call super().__init__ versions: Python 3.10, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43558> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com