1
0
forked from VimPlug/jedi

Don't use internal parso APIs if possible

This commit is contained in:
Dave Halter
2018-06-29 10:04:03 +02:00
parent c208d37ac4
commit 68974aee58
2 changed files with 3 additions and 3 deletions

View File

@@ -404,7 +404,7 @@ class Completion(BaseDefinition):
append = '('
if self._name.api_type == 'param' and self._stack is not None:
nonterminals = list(self._stack._list_nonterminals())
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 += '='