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

Function fail

mypy/main.py:1716–1722  ·  view source on GitHub ↗

Fail with a serious error.

(msg: str, stderr: TextIO, options: Options)

Source from the content-addressed store, hash-verified

1714
1715
1716def fail(msg: str, stderr: TextIO, options: Options) -> NoReturn:
1717 """Fail with a serious error."""
1718 stderr.write(f"{msg}\n")
1719 maybe_write_junit_xml(
1720 0.0, serious=True, all_messages=[msg], messages_by_file={None: [msg]}, options=options
1721 )
1722 sys.exit(2)
1723
1724
1725def read_types_packages_to_install(cache_dir: str, after_run: bool) -> list[str]:

Callers 8

get_omitted_anyFunction · 0.70
instantiate_type_aliasFunction · 0.70
set_any_tvarsFunction · 0.70
validate_instanceFunction · 0.70
check_arg_kindsFunction · 0.70
check_param_namesFunction · 0.70
mainFunction · 0.70
process_optionsFunction · 0.70

Calls 3

maybe_write_junit_xmlFunction · 0.85
exitMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…