mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 10:14:36 +08:00
get rid of UncaughtAttributError, fixes #191
This commit is contained in:
+2
-1
@@ -407,7 +407,8 @@ class ArrayInstance(pr.Base):
|
|||||||
continue
|
continue
|
||||||
items += evaluate.get_iterator_types([typ])
|
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
|
return [] # generated var_args should not be checked for arrays
|
||||||
|
|
||||||
module = self.var_args.get_parent_until()
|
module = self.var_args.get_parent_until()
|
||||||
|
|||||||
Reference in New Issue
Block a user