repeated-keyword / E1132ΒΆ

Message emitted:

Got multiple values for keyword argument %r in function call

Description:

Emitted when a function call got multiple values for a keyword.

Problematic code:

def func(a, b, c):
    return a, b, c


func(1, 2, c=3, **{"c": 4})  # [repeated-keyword]
func(1, 2, **{"c": 3}, **{"c": 4})  # [repeated-keyword]

Correct code:

def func(a, b, c):
    return a, b, c


func(1, 2, c=3)

Created by the typecheck checker.