mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Avoid wrong random call signature completion, fixes #1433
This commit is contained in:
@@ -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