mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 08:13:09 +07:00
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
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user