Files
openide/python/testData/quickFixes/PyMoveAttributeToInitQuickFixTest/addFieldButNotMoveIfLocalFunctionAssigned.py
andrey.matveev 1156723b14 PY-33055 Fix move attribute to __init__ method quickfix
(cherry picked from commit cd6abb8ad8a01b22066bed85639242b03a85d1d0)

IJ-MR-8050

GitOrigin-RevId: f8a350835ce303c96b7f404263d8367242f4eaa6
2021-10-12 06:16:05 +00:00

9 lines
178 B
Python

class Clazz:
def __init__(self, alpha):
self.alpha = alpha
def foo(self):
def local_fun():
return 42
self.x<caret> = 2 + local_fun()