forked from VimPlug/jedi
Fix issues with random tuples in TreeArgument.
Thanks @micbou for noticing it. https://github.com/davidhalter/jedi/commit/b92c7d3351a34052237df4a292ec81ef97647e7f
This commit is contained in:
@@ -156,7 +156,7 @@ def _check_name_for_execution(evaluator, context, compare_node, name, trailer):
|
||||
def create_func_excs():
|
||||
arglist = trailer.children[1]
|
||||
if arglist == ')':
|
||||
arglist = ()
|
||||
arglist = None
|
||||
args = TreeArguments(evaluator, context, arglist, trailer)
|
||||
if value_node.type == 'funcdef':
|
||||
yield value.get_function_execution(args)
|
||||
|
||||
Reference in New Issue
Block a user