python-by-example-150-chall.../venv/lib/python3.6/site-packages/pylint/test/input/func_e0204.py

21 lines
428 B
Python
Raw Normal View History

2019-08-04 20:26:35 +08:00
"""check for method without self as first argument
"""
# pylint: disable=useless-object-inheritance
from __future__ import print_function
__revision__ = 0
class Abcd(object):
"""dummy class"""
def __init__(truc):
"""method without self"""
print(1)
def abdc(yoo):
"""another test"""
print(yoo)
def edf(self):
"""just another method"""
print('yapudju in', self)