mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
working extract refactorings, affects #103
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
# --- simple
|
||||
def test():
|
||||
#? 25 a
|
||||
return test(1, (30 + b, c) + 1)
|
||||
return test(100, (30 + b, c) + 1)
|
||||
|
||||
# +++
|
||||
def test():
|
||||
a = (30 + b, c) + 1
|
||||
return test(a)
|
||||
return test(100, a)
|
||||
|
||||
# --- multiline
|
||||
def test():
|
||||
#? 30 x
|
||||
return test(1, (30 + b, c) + 1)
|
||||
return test(1, (30 + b, c)
|
||||
+ 1)
|
||||
# +++
|
||||
def test():
|
||||
x = (30 + b, c) + 1
|
||||
return test(x)
|
||||
x = ((30 + b, c) + 1
|
||||
+ 1)
|
||||
return test(x
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user