Fix an issue with the new set of types instead of lists.

This commit also includes some comments and improvements for debugging.
This commit is contained in:
Dave Halter
2015-10-29 20:53:14 +01:00
parent 70160d97e7
commit 05798734bf
3 changed files with 20 additions and 18 deletions

View File

@@ -60,7 +60,7 @@ class Arguments(tree.Base):
element = self.argument_node[0]
from jedi.evaluate.iterable import AlreadyEvaluated
if isinstance(element, AlreadyEvaluated):
element = self._evaluator.eval_element(element)[0]
element = list(self._evaluator.eval_element(element))[0]
except IndexError:
return None
else: