third_party.pylibs.pylint.src/test/input/func_method_missing_self.py
James Lingard d70e6d4995 Add a checker verifying that the arguments passed to a
function call match the function's formal parameters
2009-11-25 09:52:56 +01:00

25 lines
384 B
Python

"""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()