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

Method analyze_try_stmt

mypy/semanal.py:5545–5557  ·  view source on GitHub ↗
(self, s: TryStmt, visitor: NodeVisitor[None])

Source from the content-addressed store, hash-verified

5543 self.analyze_try_stmt(s, self)
5544
5545 def analyze_try_stmt(self, s: TryStmt, visitor: NodeVisitor[None]) -> None:
5546 s.body.accept(visitor)
5547 for type, var, handler in zip(s.types, s.vars, s.handlers):
5548 if type:
5549 type.accept(visitor)
5550 if var:
5551 self.analyze_lvalue(var)
5552 with self.inside_except_star_block_set(self.inside_except_star_block or s.is_star):
5553 handler.accept(visitor)
5554 if s.else_body:
5555 s.else_body.accept(visitor)
5556 if s.finally_body:
5557 s.finally_body.accept(visitor)
5558
5559 def visit_with_stmt(self, s: WithStmt) -> None:
5560 self.statement = s

Callers 1

visit_try_stmtMethod · 0.95

Calls 4

analyze_lvalueMethod · 0.95
zipFunction · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected