mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
d70e6d4995
function call match the function's formal parameters
25 lines
384 B
Python
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()
|
|
|