Author chaim422
Recipients chaim422
Date 2021-01-03.05:51:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609653092.18.0.893619520042.issue42812@roundup.psfhosted.org>
In-reply-to
Content
Why should @overload need to be followed by an implementation when an implementation already exists in the parent class?

Illustrative example:

class Parent:
    def foo(**kwargs):
        """Argument names of foo vary depending on the child class."""

class Child(Parent):
    @overload foo(a, b): ...
    
Raises:

"NotImplementedError: You should not call an overloaded function. A series of @overload-decorated functions outside a stub module should always be followed by an implementation that is not @overload-ed."
History
Date User Action Args
2021-01-03 05:51:32chaim422setrecipients: + chaim422
2021-01-03 05:51:32chaim422setmessageid: <1609653092.18.0.893619520042.issue42812@roundup.psfhosted.org>
2021-01-03 05:51:32chaim422linkissue42812 messages
2021-01-03 05:51:31chaim422create