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

Function hard_exit

mypy/util.py:461–468  ·  view source on GitHub ↗

Kill the current process without fully cleaning up. This can be quite a bit faster than a normal exit() since objects are not freed.

(status: int = 0)

Source from the content-addressed store, hash-verified

459
460
461def hard_exit(status: int = 0) -> None:
462 """Kill the current process without fully cleaning up.
463
464 This can be quite a bit faster than a normal exit() since objects are not freed.
465 """
466 sys.stdout.flush()
467 sys.stderr.flush()
468 os._exit(status)
469
470
471def unmangle(name: str) -> str:

Callers

nothing calls this directly

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…