1
0
forked from VimPlug/jedi

Fix named param completion and add a few tests.

This commit is contained in:
Dave Halter
2016-11-27 11:27:30 +01:00
parent 0b5f8ccc21
commit 4ad0179b72
3 changed files with 44 additions and 28 deletions

View File

@@ -22,7 +22,8 @@ def get_call_signature_param_names(call_signatures):
# Allow access on _definition here, because it's a
# public API and we don't want to make the internal
# Name object public.
if p._definition.stars == 0: # no *args/**kwargs
tree_param = tree.search_ancestor(p._name.tree_name, 'param')
if tree_param.stars == 0: # no *args/**kwargs
yield p._name