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

Method add_implicit_unreachable

mypyc/irbuild/builder.py:606–609  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

604 self.nonlocal_control[-1].gen_return(self, retval, line)
605
606 def add_implicit_unreachable(self) -> None:
607 block = self.builder.blocks[-1]
608 if not block.terminated:
609 self.add(Unreachable())
610
611 def disallow_class_assignments(self, lvalues: list[Lvalue], line: int) -> None:
612 # Some best-effort attempts to disallow assigning to class

Callers 1

Calls 2

addMethod · 0.95
UnreachableClass · 0.90

Tested by

no test coverage detected