PY-33055 Fix move attribute to __init__ method quickfix

(cherry picked from commit cd6abb8ad8a01b22066bed85639242b03a85d1d0)

IJ-MR-8050

GitOrigin-RevId: f8a350835ce303c96b7f404263d8367242f4eaa6
This commit is contained in:
andrey.matveev
2020-07-29 09:52:02 +07:00
committed by intellij-monorepo-bot
parent b858b9c4a5
commit 1156723b14
10 changed files with 158 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
class Clazz:
def __init__(self, alpha):
self.alpha = alpha
def foo(self):
self.x<caret> = self.bar(42)
def bar(self, x):
print(x)
return x + 1