mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-19 20:41:09 +07:00
extracted logic for "add element to statement list" into PyUtil reused in PyMoveAttributeToInitQuickFix and PyClassHasNoInitInspection reused AddMethodQuickFix in PyClassHasNoInitInspection
12 lines
214 B
Python
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
|