MCPcopy Create free account
hub / github.com/python/mypy / handle_right

Method handle_right

mypyc/irbuild/builder.py:1283–1293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1281
1282 def shortcircuit_expr(self, expr: OpExpr) -> Value:
1283 def handle_right() -> Value:
1284 if expr.right_unreachable:
1285 self.builder.add(
1286 RaiseStandardError(
1287 RaiseStandardError.RUNTIME_ERROR,
1288 "mypyc internal error: should be unreachable",
1289 expr.right.line,
1290 )
1291 )
1292 return self.builder.none()
1293 return self.accept(expr.right)
1294
1295 return self.builder.shortcircuit_helper(
1296 expr.op, self.node_type(expr), lambda: self.accept(expr.left), handle_right, expr.line

Callers

nothing calls this directly

Calls 4

acceptMethod · 0.95
RaiseStandardErrorClass · 0.90
addMethod · 0.45
noneMethod · 0.45

Tested by

no test coverage detected