1
0
forked from VimPlug/jedi

Param is now the parent of its names and not just a helper class.

This commit is contained in:
Dave Halter
2014-10-28 02:05:44 +01:00
parent 1a6ff3e8e6
commit fe7c750c2c
4 changed files with 34 additions and 17 deletions
+4
View File
@@ -167,6 +167,10 @@ def get_params(evaluator, func, var_args):
# There may be calls, which don't fit all the params, this just ignores it.
#unpacked_va = _unpack_var_args(evaluator, var_args, func)
unpacked_va = list(var_args.unpack())
from jedi.evaluate.representation import InstanceElement
if isinstance(func, InstanceElement):
# Include self at this place.
unpacked_va.insert(0, (None, [func.instance]))
var_arg_iterator = common.PushBackIterator(iter(unpacked_va))
non_matching_keys = defaultdict(lambda: [])