Files
openide/python/testData/quickFixes/AddMethodQuickFixTest/addMethodFromMethod.py
T
Ekaterina Tuzova eafde14771 implemented W0232: Class has no __init__ method
extracted logic for "add element to statement list" into PyUtil
reused in PyMoveAttributeToInitQuickFix and PyClassHasNoInitInspection

reused AddMethodQuickFix in PyClassHasNoInitInspection
2013-03-22 14:13:18 +04:00

12 lines
214 B
Python

class A:
def __init__(self):
self.x = 1
def foo(self, a):
self.<caret><warning descr="Unresolved attribute reference 'y' for class 'A'">y</warning>(1, a)
# Some comment
class B:
pass