Fix named param completion and add a few tests.

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

No files matched your search

+2 -1
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