MCPcopy
hub / github.com/python/mypy / error_callback

Function error_callback

mypy/stubtest.py:2405–2407  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

2403 parse_config_file(options, set_strict_flags, options.config_file, sys.stdout, sys.stderr)
2404
2405 def error_callback(msg: str) -> typing.NoReturn:
2406 print(_style("error:", color="red", bold=True), msg)
2407 sys.exit(1)
2408
2409 def warning_callback(msg: str) -> None:
2410 print(_style("warning:", color="yellow", bold=True), msg)

Callers 2

process_error_codesMethod · 0.85

Calls 3

printFunction · 0.85
_styleFunction · 0.85
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…