MCPcopy Index your code
hub / github.com/python/mypy / visit_generator_expr

Method visit_generator_expr

mypy/semanal.py:6384–6388  ·  view source on GitHub ↗
(self, expr: GeneratorExpr)

Source from the content-addressed store, hash-verified

6382 self.analyze_comp_for_2(expr)
6383
6384 def visit_generator_expr(self, expr: GeneratorExpr) -> None:
6385 with self.enter(expr):
6386 self.analyze_comp_for(expr)
6387 expr.left_expr.accept(self)
6388 self.analyze_comp_for_2(expr)
6389
6390 def analyze_comp_for(self, expr: GeneratorExpr | DictionaryComprehension) -> None:
6391 """Analyses the 'comp_for' part of comprehensions (part 1).

Callers

nothing calls this directly

Calls 4

enterMethod · 0.95
analyze_comp_forMethod · 0.95
analyze_comp_for_2Method · 0.95
acceptMethod · 0.45

Tested by

no test coverage detected