diff options
Diffstat (limited to 'test/input/func_method_missing_self.py')
-rw-r--r-- | test/input/func_method_missing_self.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/input/func_method_missing_self.py b/test/input/func_method_missing_self.py new file mode 100644 index 0000000..5bdbc69 --- /dev/null +++ b/test/input/func_method_missing_self.py @@ -0,0 +1,25 @@ +"""Checks that missing self in method defs don't crash Pylint ! +""" + +__revision__ = '' + + +class MyClass: + """SimpleClass + """ + + def __init__(self): + self.var = "var" + + def met(): + """Checks that missing self dont crash Pylint ! + """ + + def correct(self): + """yo""" + self.var = "correct" + +if __name__ == '__main__': + OBJ = MyClass() + OBJ.met() + |