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:
1 parent
0dda740c5d
commit
f9ec989835
4 files changed
+22
-15
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user