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

Method visit_lambda_expr

mypyc/annotate.py:403–409  ·  view source on GitHub ↗
(self, o: LambdaExpr, /)

Source from the content-addressed store, hash-verified

401 self.check_isinstance_arg(item)
402
403 def visit_lambda_expr(self, o: LambdaExpr, /) -> None:
404 self.annotate(
405 o,
406 "A new object is allocated for lambda each time it is evaluated. "
407 + "A module-level function would be faster.",
408 )
409 super().visit_lambda_expr(o)
410
411 def annotate(self, o: Node, ann: str | Annotation, priority: int = 1) -> None:
412 if isinstance(ann, str):

Callers

nothing calls this directly

Calls 1

annotateMethod · 0.95

Tested by

no test coverage detected