Extract: Make sure params are not duplicated

This commit is contained in:
Dave Halter committed 2020-02-23 23:22:38 +01:00
1 parent da935baa99
commit 48e25c1b9b
2 files changed
+40 -7

No files matched your search

+19
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