mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 11:29:28 +07:00
extracted logic for "add element to statement list" into PyUtil reused in PyMoveAttributeToInitQuickFix and PyClassHasNoInitInspection reused AddMethodQuickFix in PyClassHasNoInitInspection
15 lines
172 B
Python
15 lines
172 B
Python
class A:
|
|
def __init__(self):
|
|
self.x = 1
|
|
|
|
def foo(self, a):
|
|
self.y(1, a)
|
|
|
|
def y(self, param, a):
|
|
pass
|
|
|
|
# Some comment
|
|
|
|
class B:
|
|
pass
|