1
0
forked from VimPlug/jedi

Make sure that equals will only be added to keyword arguments and not just randomly

This commit is contained in:
Dave Halter
2020-01-01 18:55:38 +01:00
parent 9dc18054ee
commit 54bd0b437f
5 changed files with 34 additions and 20 deletions

View File

@@ -456,11 +456,7 @@ class Completion(BaseDefinition):
and self.type == 'function':
append = '('
if self._name.api_type == 'param' and self._stack is not None:
nonterminals = [stack_node.nonterminal for stack_node in self._stack]
if 'trailer' in nonterminals and 'argument' not in nonterminals:
# TODO this doesn't work for nested calls.
append += '='
self._name.api_type
name = self._name.get_public_name()
if like_name: