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

Class AwaitDetector

mypyc/irbuild/statement.py:1038–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036
1037# A simple visitor to detect await expressions
1038class AwaitDetector(mypy.traverser.TraverserVisitor):
1039 def __init__(self) -> None:
1040 super().__init__()
1041 self.has_await = False
1042
1043 def visit_await_expr(self, o: mypy.nodes.AwaitExpr) -> None:
1044 self.has_await = True
1045 super().visit_await_expr(o)
1046
1047
1048def transform_try_stmt(builder: IRBuilder, t: TryStmt) -> None:

Callers 1

transform_try_stmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…