duplicate-argument-name / E0108ΒΆ

Message emitted:

Duplicate argument name %s in function definition

Description:

Duplicate argument names in function definitions are syntax errors.

Problematic code:

def get_fruits(apple, banana, apple):  # [duplicate-argument-name]
    pass

Correct code:

def get_fruits(apple, banana, orange):
    pass

Created by the basic checker.