On Thu, Sep 24, 2020 at 6:59 PM Guido van Rossum <gu...@python.org> wrote:
> Interesting problem. Since the solution is just updating > `__abstractmethods__`, this could be done in the `@dataclass` decorator, no > new ABC needed. > > This issue also pertains to total_ordering (and perhaps other std library class-decorators I haven't thought of), not to mention 3rd party decorators that could have this problem (attrs, for example, does not cover this case). Updating __abstractmethods__ inside each of these decorators would solve the problem, but does seem like a pain for 3rd-party. Maybe a meta-decorator could be added to make this easier? @update_abstractmethods def dataclass(...): ... >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/74U5YHILPLXFVK4E5M7CFOKYPDNHXNYM/ Code of Conduct: http://python.org/psf/codeofconduct/