fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument

This commit is contained in:
Ekaterina Tuzova
2013-05-29 16:35:09 +04:00
parent b2a2abbce5
commit 536d978917
9 changed files with 87 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
__author__ = 'ktisha'
class A:
def fo<caret>o(self):
print("Hello Pycharm!")

View File

@@ -0,0 +1,6 @@
class A:
def m<caret>(self, x):
return x
print A.m(A(), 1)

View File

@@ -0,0 +1,3 @@
import test
test.A().foo(1)

View File

@@ -0,0 +1,3 @@
import test
test.A().foo(1)

View File

@@ -0,0 +1,7 @@
class A:
@staticmethod
def m(x):
return x
print A.m(1)