1
0
forked from VimPlug/jedi

Fix types tests.

This commit is contained in:
Dave Halter
2014-11-20 11:16:52 +01:00
parent 2c3a7b6d6c
commit 53c2a1679c
2 changed files with 4 additions and 3 deletions

View File

@@ -220,8 +220,9 @@ class Evaluator(object):
else:
c = atom.children
# Parentheses without commas are not tuples.
if c[0] == '(' and not (pr.is_node(c[1], 'testlist_comp')
and len(c[1].children) > 1):
if c[0] == '(' and not len(c) == 2 \
and not(pr.is_node(c[1], 'testlist_comp')
and len(c[1].children) > 1):
return self.eval_element(c[1])
try:
comp_for = c[1].children[1]