Yurii Karabas <[email protected]> added the comment:
I think the simplest solution in your case is not to use `@overload`, as far as
I understand you want to override the signature of base method.
This code won't produce any error when used with `mypy`:
```
class Parent:
def foo(**kwargs):
"""Argument names of foo vary depending on the child class."""
class Child(Parent):
def foo(self, a, b):
pass
``
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42812>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com