diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index 67532b32..cc8924bb 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -1176,6 +1176,9 @@ class ListComprehension(Base): s.parent = self self.parent = parent + def get_parent_until(self, *args, **kwargs): + return Simple.get_parent_until(self, *args, **kwargs) + @property def start_pos(self): return self.stmt.start_pos