1
0
forked from VimPlug/jedi

Fix REPL completion param name completion

There were two issues:
1. The filter for parameters was wrong
2. In general the equal sign would not be added in some circumstances
This commit is contained in:
Dave Halter
2018-03-13 21:36:04 +01:00
parent 0dda740c5d
commit f9ec989835
4 changed files with 22 additions and 15 deletions

View File

@@ -25,8 +25,10 @@ def get_call_signature_param_names(call_signatures):
# public API and we don't want to make the internal
# Name object public.
tree_param = tree.search_ancestor(tree_name, 'param')
if tree_param.star_count == 0: # no *args/**kwargs
yield p._name
if tree_param.star_count != 0: # no *args/**kwargs
continue
yield p._name
def filter_names(evaluator, completion_names, stack, like_name):