summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_e0108.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_e0108.py')
-rw-r--r--pylint/test/input/func_e0108.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pylint/test/input/func_e0108.py b/pylint/test/input/func_e0108.py
new file mode 100644
index 0000000..2ed2ce1
--- /dev/null
+++ b/pylint/test/input/func_e0108.py
@@ -0,0 +1,14 @@
+"""Check for duplicate function arguments."""
+__revision__ = 1
+
+def foo1(_, _):
+ """Function with duplicate argument name."""
+ pass
+
+def foo2(_, *_):
+ """Function with duplicate argument name."""
+ pass
+
+def foo3(_, _=3):
+ """Function with duplicate argument name."""
+ pass