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

Method visit_lambda_expr

mypy/treetransform.py:224–231  ·  view source on GitHub ↗
(self, node: LambdaExpr)

Source from the content-addressed store, hash-verified

222 return new
223
224 def visit_lambda_expr(self, node: LambdaExpr) -> LambdaExpr:
225 new = LambdaExpr(
226 [self.copy_argument(arg) for arg in node.arguments],
227 self.block(node.body),
228 cast(FunctionLike | None, self.optional_type(node.type)),
229 )
230 self.copy_function_attributes(new, node)
231 return new
232
233 def copy_function_attributes(self, new: FuncItem, original: FuncItem) -> None:
234 new.info = original.info

Callers

nothing calls this directly

Calls 5

copy_argumentMethod · 0.95
blockMethod · 0.95
optional_typeMethod · 0.95
LambdaExprClass · 0.90

Tested by

no test coverage detected