summaryrefslogtreecommitdiff
path: root/tests/functional/d/duplicate/duplicate_argument_name.py
blob: c0c68b43bb2055e298a25c403049227886851d10 (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]
    """Function with duplicate argument name."""

def foo2(_abc, *, _abc): # [duplicate-argument-name]
    """Function with duplicate argument name."""

def foo3(_, _=3): # [duplicate-argument-name]
    """Function with duplicate argument name."""

def foo4(_, *, _): # [duplicate-argument-name]
    """Function with duplicate argument name."""