diff --git a/jedi/inference/context.py b/jedi/inference/context.py index 62e08a74..3dd7451b 100644 --- a/jedi/inference/context.py +++ b/jedi/inference/context.py @@ -358,6 +358,9 @@ class CompForContext(TreeContextMixin, AbstractContext): def get_filters(self, until_position=None, origin_scope=None): yield ParserTreeFilter(self) + def py__name__(self): + return '' + class CompiledContext(ValueContext): def get_filters(self, until_position=None, origin_scope=None):