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

Method is_unreachable

mypy/binder.py:281–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

279 return found.type
280
281 def is_unreachable(self) -> bool:
282 # TODO: Copy the value of unreachable into new frames to avoid
283 # this traversal on every statement?
284 return any(f.unreachable for f in self.frames)
285
286 def is_unreachable_warning_suppressed(self) -> bool:
287 return any(f.suppress_unreachable_warnings for f in self.frames)

Callers 4

check_first_passMethod · 0.80
check_func_defMethod · 0.80
visit_blockMethod · 0.80
visit_try_stmtMethod · 0.80

Calls 1

anyFunction · 0.85

Tested by

no test coverage detected