Avoid wrong random call signature completion, fixes #1433

This commit is contained in:
Dave Halter
2019-12-03 22:12:33 +01:00
parent fea80c7fc8
commit f46f00bc71
3 changed files with 30 additions and 2 deletions

View File

@@ -60,3 +60,23 @@ Test().test(blub=)
#? 12 []
any(iterable=)
def foo(xyz):
pass
#? 7 ['xyz']
foo(xyz)
# No completion should be possible if it's not a simple name
#? 17 []
x = " "; foo(x.xyz)
#? 17 []
x = " "; foo([xyz)
#? 20 []
x = " "; foo(z[f,xyz)
#? 18 []
x = " "; foo(z[xyz)
#? 20 []
x = " "; foo(xyz[xyz)
#? 20 []
x = " "; foo(xyz[(xyz)