From 2c0a46fafe8155f3931a476587664e0eb391d354 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 31 Jul 2014 17:47:56 +0200 Subject: [PATCH] Fix an issue with CallSignatures: If used in a longer statement, it could happen that parts of the statement was still evaluated, but the call signature is only valid at the cursor. --- jedi/api/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 2bb6fab4..5ed63794 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -564,9 +564,10 @@ class Script(object): # Go to parent literal/variable until not possible anymore. This # makes it possible to return the whole expression. stmt_el = stmt_el.parent - # We can reset the execution since it's a new object + # We can change the execution since it's a new object # (fast_parent_copy). execution_arr, call.execution = call.execution, None + call.next = None with common.scale_speed_settings(settings.scale_call_signatures): _callable = lambda: self._evaluator.eval_call(stmt_el)