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

Method visit_ListComp

mypy/fastparse.py:1555–1557  ·  view source on GitHub ↗
(self, n: ast3.ListComp)

Source from the content-addressed store, hash-verified

1553
1554 # ListComp(expr elt, comprehension* generators)
1555 def visit_ListComp(self, n: ast3.ListComp) -> ListComprehension:
1556 e = ListComprehension(self.visit_GeneratorExp(cast(ast3.GeneratorExp, n)))
1557 return self.set_line(e, n)
1558
1559 # SetComp(expr elt, comprehension* generators)
1560 def visit_SetComp(self, n: ast3.SetComp) -> SetComprehension:

Callers

nothing calls this directly

Calls 3

visit_GeneratorExpMethod · 0.95
set_lineMethod · 0.95
ListComprehensionClass · 0.90

Tested by

no test coverage detected