[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

Adrian Freund report at bugs.python.org
Fri Apr 9 19:09:15 EDT 2021


Adrian Freund <git at freundtech.com> added the comment:

I agree that __match_args__ shouldn't have to be added to the documentation of any class that supports it, however dataclass and (maybe to a lesser extend) NamedTuple aren't themselves classes, but aid in creating own classes. Their effects on classes generated by them should be documented.
The documentation also mentions other fields/methods generated by dataclass and NamedTyple.

----------

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


More information about the Python-bugs-list mailing list