Message384255
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." |
|
Date |
User |
Action |
Args |
2021-01-03 05:51:32 | chaim422 | set | recipients:
+ chaim422 |
2021-01-03 05:51:32 | chaim422 | set | messageid: <1609653092.18.0.893619520042.issue42812@roundup.psfhosted.org> |
2021-01-03 05:51:32 | chaim422 | link | issue42812 messages |
2021-01-03 05:51:31 | chaim422 | create | |
|