Say I have the following 2 methods:
def methodA(arg, **kwargs):
pass
def methodB(arg, *args, **kwargs):
pass
In methodA I wish to call methodB, passing on the kwargs. However, it seems if I simply do:
def methodA(arg, **kwargs):
methodB("argvalue", kwargs)
The second argument will be passed on as positional rather than named variable arguments. How do I make sure that the **kwargs in methodA gets passed as **kwargs to methodB?