mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
fixed the dict problem, but dictionary completions are still very bad
This commit is contained in:
@@ -641,6 +641,7 @@ class Execution(Executable):
|
|||||||
elif commands[0] == '**':
|
elif commands[0] == '**':
|
||||||
arrays = evaluate.follow_call_list(commands[1:])
|
arrays = evaluate.follow_call_list(commands[1:])
|
||||||
for array in arrays:
|
for array in arrays:
|
||||||
|
if isinstance(array, Array):
|
||||||
for key_stmt, value_stmt in array.items():
|
for key_stmt, value_stmt in array.items():
|
||||||
# first index, is the key if syntactically correct
|
# first index, is the key if syntactically correct
|
||||||
call = key_stmt.get_commands()[0]
|
call = key_stmt.get_commands()[0]
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ f()
|
|||||||
d = dict({'a':''})
|
d = dict({'a':''})
|
||||||
def y(a):
|
def y(a):
|
||||||
return a
|
return a
|
||||||
#? str()
|
#?
|
||||||
y(**d)
|
y(**d)
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user