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

Method use_goto

mypyc/codegen/emitwrapper.py:879–881  ·  view source on GitHub ↗

Do we use a goto for error handling (instead of straight return)?

(self)

Source from the content-addressed store, hash-verified

877 )
878
879 def use_goto(self) -> bool:
880 """Do we use a goto for error handling (instead of straight return)?"""
881 return bool(self.cleanups or self.traceback_code)
882
883 def emit_header(self) -> None:
884 """Emit the function header of the wrapper implementation."""

Callers 3

generate_wrapper_coreFunction · 0.95
emit_callMethod · 0.95
emit_error_handlingMethod · 0.95

Calls 1

boolClass · 0.85

Tested by

no test coverage detected