1
0
forked from VimPlug/jedi

get rid of UncaughtAttributError, fixes #191

This commit is contained in:
David Halter
2013-05-03 17:22:48 +04:30
parent 4865505215
commit 55d2b19cc0

View File

@@ -407,7 +407,8 @@ class ArrayInstance(pr.Base):
continue
items += evaluate.get_iterator_types([typ])
if self.var_args.parent is None:
# TODO check if exclusion of tuple is a problem here.
if isinstance(self.var_args, tuple) or self.var_args.parent is None:
return [] # generated var_args should not be checked for arrays
module = self.var_args.get_parent_until()