1
0
forked from VimPlug/jedi

Extract: Make sure params are not duplicated

This commit is contained in:
Dave Halter
2020-02-23 23:22:00 +01:00
parent da935baa99
commit 48e25c1b9b
2 changed files with 40 additions and 7 deletions

View File

@@ -63,6 +63,25 @@ class X:
def f(x, b):
#? 11 text {'new_name': 'ab'}
return x.ab(b)
# -------------------------------------------------- in-method-2
glob1 = 1
class X:
def g(self): pass
def f(self, b, c):
#? 11 text {'new_name': 'ab'}
return self.g() or self.f(b) ^ glob1 & b
# ++++++++++++++++++++++++++++++++++++++++++++++++++
glob1 = 1
class X:
def g(self): pass
def ab(self, b):
return self.g() or self.f(b) ^ glob1 & b
def f(self, b, c):
#? 11 text {'new_name': 'ab'}
return self.ab(b)
# -------------------------------------------------- in-classmethod-1
class X:
@classmethod