1
0
forked from VimPlug/jedi

ExecutedParams should never be additionally faked, even if they are the first params. They have been legitimately created by a caller.

This commit is contained in:
Dave Halter
2014-06-30 15:22:53 +02:00
parent 0d3ea4dfb4
commit 0b99473886
4 changed files with 18 additions and 3 deletions

View File

@@ -356,7 +356,7 @@ def _gen_param_name_copy(func, var_args, param, keys=(), values=(), array_type=N
def _error_argument_count(func, actual_count):
default_arguments = sum(1 for p in func.params if p.assignment_details)
default_arguments = sum(1 for p in func.params if p.assignment_details or p.stars)
if default_arguments == 0:
before = 'exactly '