mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
- ability to inline single/all invocations and keep/remove the declaration - handled name conflicts of local and imported vars/functions - cases when this refactoring is not applicable can be found in PyInlineFunctionHandler (cherry picked from commit 40e298ba2b833a4408ee774628b84fe422468b91) GitOrigin-RevId: dd3fab59800163b4f300b410cd28a62c1ee1b6f3
14 lines
270 B
Python
14 lines
270 B
Python
class A:
|
|
def __init__(self, a, b):
|
|
self.a = a
|
|
self.b = b
|
|
|
|
def doStuff(self):
|
|
print(self.a)
|
|
print(self.b)
|
|
return self.a + self.b
|
|
|
|
@classmethod
|
|
def foo(cls):
|
|
my_a = A(1, 2)
|
|
res = my_a.doSt<caret>uff() |