Files
openide/python/testData/refactoring/changeSignature/ordinaryMethod.after.py
Mikhail Golubev b044c8811a PY-33487 PY-30874 Properly account implicit arguments in Change Signature
Instead of just relying on the fact that some of parameters is named "self".

GitOrigin-RevId: c9c0d1d4bbcecb93a84a3dc451485fa70790ca6d
2020-04-17 12:46:38 +00:00

20 lines
211 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class A:
def fo<caret>o(self, a, b):
pass
class B(A):
def foo(self, a, b):
pass
class С(A):
def foo(self, a, b):
pass
a = A()
a.foo(1, 2)
A.foo(a, 1, 2)
b = B()
b.foo(2, 2)
B.foo(b, 2, 2)