(self, node: LambdaExpr)
| 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 |
nothing calls this directly
no test coverage detected