Files
openide/python/testData/refactoring/inlineFunction/selfUsageDetection/main.after.py
Aleksei Kniazev d672b03510 IDEA-CR-49176: improved check for self usage when inlining a function (PY-36471)
GitOrigin-RevId: 3e99835432e2b5382c257bbe4375aacb94da16bc
2019-07-08 18:05:36 +03:00

13 lines
160 B
Python

class MyClass:
def another(self):
pass
inst = MyClass()
inst.another()
inst.another()
my_class = MyClass()
my_class.another()
my_class.another()