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

Method exit

mypy/main.py:434–437  ·  view source on GitHub ↗
(self, status: int = 0, message: str | None = None)

Source from the content-addressed store, hash-verified

432 # Exiting methods
433 # ===============
434 def exit(self, status: int = 0, message: str | None = None) -> NoReturn:
435 if message:
436 self._print_message(message, self.stderr)
437 sys.exit(status)
438
439 def error(self, message: str) -> NoReturn:
440 """error(message: string)

Callers 15

errorMethod · 0.95
pyinfo.pyFile · 0.80
matches_excludeFunction · 0.80
default_lib_pathFunction · 0.80
compute_search_pathsFunction · 0.80
parse_source_fileFunction · 0.80
console_entryFunction · 0.80
error_callbackFunction · 0.80
stubtest.pyFile · 0.80
process_start_optionsFunction · 0.80
serveMethod · 0.80
check_python_versionFunction · 0.80

Calls 1

_print_messageMethod · 0.95

Tested by 1

error_callbackFunction · 0.64