Author chaim422
Recipients chaim422
Date 2021-01-03.05:51:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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): ...

"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."
Date User Action Args
2021-01-03 05:51:32chaim422setrecipients: + chaim422
2021-01-03 05:51:32chaim422setmessageid: <>
2021-01-03 05:51:32chaim422linkissue42812 messages
2021-01-03 05:51:31chaim422create