Brandt Bucher <brandtbuc...@gmail.com> added the comment:

I just realized that in my first two examples, all that's really needed is a 
"del Child.__match_args__" following each class definition.

The main point still stands though: this may be a more common issue than I 
previously thought. If it is, then a dedicated kwarg to the dataclass decorator 
probably makes more sense than requiring users to "del" the generated attribute.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to