[issue43764] Turning off generation of __match_args__ for dataclasses

Eric V. Smith report at bugs.python.org
Fri Apr 9 19:28:13 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

init=False is used to make sure there's no __init__ defined, because there's a difference between a class with an __init__ and one without. If there was a difference between __match_args__ being not present and __match_args__=(), then I'd support a matchargs=False argument.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43764>
_______________________________________


More information about the Python-bugs-list mailing list