mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-20 00:03:37 +07:00
extracted logic for "add element to statement list" into PyUtil reused in PyMoveAttributeToInitQuickFix and PyClassHasNoInitInspection reused AddMethodQuickFix in PyClassHasNoInitInspection
11 lines
99 B
Python
11 lines
99 B
Python
class A:
|
|
def __init__(self):
|
|
self.x = 1
|
|
|
|
def y(self):
|
|
pass
|
|
|
|
|
|
a = A()
|
|
a.y()
|