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

Function catch_errors

mypyc/crash.py:11–15  ·  view source on GitHub ↗
(module_path: str, line: int)

Source from the content-addressed store, hash-verified

9
10@contextmanager
11def catch_errors(module_path: str, line: int) -> Iterator[None]:
12 try:
13 yield
14 except Exception:
15 crash_report(module_path, line)
16
17
18def crash_report(module_path: str, line: int) -> NoReturn:

Callers 2

catch_errorsMethod · 0.90
build_type_mapFunction · 0.90

Calls 1

crash_reportFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…