blob: c60b1178413f928f4b042cc2824710b301e35d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"""Check for duplicate function arguments."""
def foo1(_, _): # [duplicate-argument-name, duplicate-argument-name]
"""Function with duplicate argument name."""
def foo2(_abc, *, _abc): # [duplicate-argument-name, duplicate-argument-name]
"""Function with duplicate argument name."""
def foo3(_, _=3): # [duplicate-argument-name, duplicate-argument-name]
"""Function with duplicate argument name."""
def foo4(_, *, _): # [duplicate-argument-name, duplicate-argument-name]
"""Function with duplicate argument name."""
|