mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-03 09:13:46 +08:00
Avoid wrong random call signature completion, fixes #1433
This commit is contained in:
1 parent
fea80c7fc8
commit
f46f00bc71
3 files changed
+30
-2
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user