def visit_with_stmt(self, node: WithStmt) -> WithStmt: new = WithStmt(self.expressions(node.expr), self.optional_expressions(node.target), self.block(node.body), self.optional_type(node.unanalyzed_type)) new.analyzed_types = [self.type(typ) for typ in node.analyzed_types] return new
def visit_with_stmt(self, node: WithStmt) -> None: super().visit_with_stmt(node) node.analyzed_types = []