Merge pull request #1601 from yuan-xy/patch_3

add test case to fix code example in doc
This commit is contained in:
Dave Halter authored and GitHub committed 2020-05-31 11:14:58 +02:00
commit 9980f760b1
2 files changed
+20 -3

No files matched your search

+4 -3
View File
@@ -759,10 +759,11 @@ class Script(object):
global_var = 3
def bar(foo):
return foo + 1 + global_var
return int(foo + 1 + global_var)
def x(foo):
x = int(bar(foo))
def x():
foo = 3.1
x = bar(foo)
:param new_name: The expression under the cursor will be replaced with
a function with this name.