Пример #1
0
 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
Пример #2
0
 def visit_with_stmt(self, node: WithStmt) -> None:
     super().visit_with_stmt(node)
     node.analyzed_types = []
Пример #3
0
 def visit_with_stmt(self, node: WithStmt) -> None:
     super().visit_with_stmt(node)
     node.analyzed_types = []