Files
openide/python/testData/quickFixes/PyMoveAttributeToInitQuickFixTest/bothAddFieldAndMoveIfTopLevelVarAssigned.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

10 lines
129 B
Python

SOME_GLOB_VAL = 42
class Clazz:
def __init__(self):
pass
def foo(self):
self.x<caret> = SOME_GLOB_VAL