pylint-errors

E1123 (unexpected-keyword-arg)

:x: Problematic code:

def foo(key=None, value=None):
    return {key: value}


foo(k='x', v=1)

:heavy_check_mark: Correct code:

def foo(key=None, value=None):
    return {key: value}


foo(key='x', value=1)

Rationale:

Used when a function call passes a keyword argument that doesn’t correspond to one of the function’s parameter names.