mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 15:51:51 +08:00
removed a problem with generated var_args, because there is no parent_stmt
This commit is contained in:
@@ -354,6 +354,9 @@ class ArrayInstance(parsing.Base):
|
|||||||
continue
|
continue
|
||||||
items += evaluate.get_iterator_types([array])
|
items += evaluate.get_iterator_types([array])
|
||||||
|
|
||||||
|
if self.var_args.parent_stmt() is None:
|
||||||
|
return [] # generated var_args should not be checked for arrays
|
||||||
|
|
||||||
module = self.var_args.parent_stmt().get_parent_until()
|
module = self.var_args.parent_stmt().get_parent_until()
|
||||||
is_list = str(self.instance.name) == 'list'
|
is_list = str(self.instance.name) == 'list'
|
||||||
items += _check_array_additions(self.instance, module, is_list)
|
items += _check_array_additions(self.instance, module, is_list)
|
||||||
|
|||||||
Reference in New Issue
Block a user