forked from VimPlug/jedi
better support for get_in_function_call
This commit is contained in:
@@ -976,8 +976,10 @@ class Array(Call):
|
||||
Only used for dictionaries, automatically adds the tokens added by now
|
||||
from the values to keys, because the parser works this way.
|
||||
"""
|
||||
self.type = Array.DICT
|
||||
if self.type in (Array.LIST, Array.TUPLE):
|
||||
return # these are basically code errors, just ignore
|
||||
self.keys.append(self.values.pop())
|
||||
self.type = Array.DICT
|
||||
self.values.append([])
|
||||
|
||||
def get_only_subelement(self):
|
||||
|
||||
Reference in New Issue
Block a user