summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_w0205.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_w0205.py')
-rw-r--r--pylint/test/input/func_w0205.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/pylint/test/input/func_w0205.py b/pylint/test/input/func_w0205.py
new file mode 100644
index 0000000..896be6c
--- /dev/null
+++ b/pylint/test/input/func_w0205.py
@@ -0,0 +1,24 @@
+"""check different signatures"""
+from __future__ import print_function
+__revision__ = 0
+# pylint: disable=too-few-public-methods
+class Abcd(object):
+ '''dummy'''
+ def __init__(self):
+ self.aarg = False
+ def abcd(self, aaa=1, bbbb=None):
+ """hehehe"""
+ print(self, aaa, bbbb)
+ def args(self):
+ """gaarrrggll"""
+ self.aarg = True
+
+class Cdef(Abcd):
+ """dummy"""
+ def __init__(self, aaa):
+ Abcd.__init__(self)
+ self.aaa = aaa
+
+ def abcd(self, aaa, bbbb=None):
+ """hehehe"""
+ print(self, aaa, bbbb)