Files
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

4 lines
134 B
Python

__author__ = 'ktisha'
class <weak_warning descr="Class has no __init__ method">A</weak_warning>:
def foo(self):
self.b = 1