From 55d2b19cc0fbf77e827782b472f385fa6820d633 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 3 May 2013 17:22:48 +0430 Subject: [PATCH] get rid of UncaughtAttributError, fixes #191 --- jedi/dynamic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/dynamic.py b/jedi/dynamic.py index fb96c295..b12b95ab 100644 --- a/jedi/dynamic.py +++ b/jedi/dynamic.py @@ -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()