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

Method next_branch

mypyc/codegen/emitfunc.py:494–499  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

492 self.emitter.emit_line("}")
493
494 def next_branch(self) -> Branch | None:
495 if self.op_index + 1 < len(self.ops):
496 next_op = self.ops[self.op_index + 1]
497 if isinstance(next_op, Branch):
498 return next_op
499 return None
500
501 def visit_set_attr(self, op: SetAttr) -> None:
502 if op.error_kind == ERR_FALSE:

Callers 2

visit_get_attrMethod · 0.95
visit_castMethod · 0.95

Calls 2

lenFunction · 0.85
isinstanceFunction · 0.85

Tested by

no test coverage detected