mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-6835 Convert lambda to function: leads to syntactically incorrect code when lambda expression is the only statement in function
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
def transform():
|
||||
def function(x):
|
||||
return x + 5
|
||||
|
||||
return function
|
||||
@@ -0,0 +1,2 @@
|
||||
def transform():
|
||||
return lambda <caret>x: x + 5
|
||||
Reference in New Issue
Block a user