I would like to have:
- Abstract method where you have one keyword arg + variable number of other keyword args
- Concretions can specify any number of keyword args
My problem is, when I try this, pylint complains with: Parameters differ from overridden 'my_func' method
.
Here is an example:
The abstract method
@staticmethod
@abstractmethod
def my_func(config: dict, **kwargs):
pass
Example concretion
@staticmethod
def my_func(config: dict, special_case: str)
do_things()
return
Example call of concretion
my_func(config=config, special_case=special_case)
Is there a way I can construct my abstract method such that I can have:
- The one keyword arg + variable number of keyword args following
- Concretions having the one keyword arg + finite number of keyword args following
- My linter be happy
Thank you in advance!