redundant-keyword-arg / E1124#

Message emitted:

Argument %r passed by position and keyword in %s call

Description:

Used when a function call would result in assigning multiple values to a function parameter, one value from a positional argument and one from a keyword argument.

Correct code:

def square(x):
    return x * x


square(x=4)
# or
square(5)

Problematic code:

def square(x):
    return x * x


square(5, x=4)  # [redundant-keyword-arg]

Created by the typecheck checker.