forked from VimPlug/jedi
Fixed named argument call signature stuff and issues with classes and call signature params.
This commit is contained in:
@@ -571,7 +571,7 @@ class Script(object):
|
||||
|
||||
:rtype: list of :class:`classes.CallSignature`
|
||||
"""
|
||||
call_txt, call_index = self._user_context.call_signature()
|
||||
call_txt, call_index, key_name = self._user_context.call_signature()
|
||||
if call_txt is None:
|
||||
return []
|
||||
|
||||
@@ -587,7 +587,6 @@ class Script(object):
|
||||
self._pos, stmt)
|
||||
debug.speed('func_call followed')
|
||||
|
||||
key_name = None
|
||||
if 0: # Change logic.
|
||||
try:
|
||||
# Access the trailers arglist node.
|
||||
|
||||
@@ -690,6 +690,7 @@ class CallSignature(Definition):
|
||||
|
||||
for i, param in enumerate(self.params):
|
||||
# *args case
|
||||
print(param)
|
||||
if param._name.get_definition().stars == 1:
|
||||
return i
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user