PY3.E1123
Unexpected keyword arg
Used when a function call passes a keyword argument that doesn't correspond to one of the function's parameter names.
Noncompliant Code:
Copy
def foo(key=None, value=None):
return {key: value}
foo(k='x', v=1)
Compliant Code:
Copy
def foo(key=None, value=None):
return {key: value}
foo(key='x', value=1)