[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching
Eric V. Smith
report at bugs.python.org
Fri Apr 9 19:30:25 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
I do think it's worth mentioning that __match_args__ is automatically generated by @dataclass (if the class doesn't already define __match_args__). That seems like behavior that's very specific to @dataclass. Where else would you find out that defining your own __match_args__ prevents @dataclass from adding it?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43761>
_______________________________________
More information about the Python-bugs-list
mailing list