[issue42812] @overload-ing method of parent class without actual implementation

Chaim Gewirtz report at bugs.python.org
Sun Jan 3 11:40:47 EST 2021


Chaim Gewirtz <chaim422 at gmail.com> added the comment:

To clarify, this is how it's being done now a dozen times in actual production code:

class Child(Parent):
    @overload foo(a, b): ...
    def overload(**kwargs):
        return super().foo(**kwargs)

The goal of this proposed enhancement is to remove two extra lines of code per Child class.

----------

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


More information about the Python-bugs-list mailing list