if you observe, the key in the kwargs dict has to be the name of the positional argument. So, if status is supposed to be the positional argument, then kwargs is expected to have the same key
this also means you cannot have, say, integers type keys as arguments because arguments cannot be integers. The below is not allowed:
def foo(x, 1, **kwargs):
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On a side note:
kwargsdict has to be the name of the positional argument. So, ifstatusis supposed to be the positional argument, thenkwargsis expected to have the same key