"""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."""