[issue43764] Turning off generation of __match_args__ for dataclasses
Guido van Rossum
report at bugs.python.org
Wed Apr 7 14:35:59 EDT 2021
Guido van Rossum <guido at python.org> added the comment:
I assume the OP wants to have a class that doesn't allow positional patterns. The right way to spell that is indeed to add
__match_args__ = ()
to the class, there's no need to add another flag to @dataclass.
----------
resolution: -> rejected
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43764>
_______________________________________
More information about the Python-bugs-list
mailing list