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

Function run_mypy

mypy/test/helpers.py:39–47  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

37
38
39def run_mypy(args: list[str]) -> None:
40 __tracebackhide__ = True
41 # We must enable site packages even though they could cause problems,
42 # since stubs for typing_extensions live there.
43 outval, errval, status = api.run(args + ["--show-traceback", "--no-silence-site-packages"])
44 if status != 0:
45 sys.stdout.write(outval)
46 sys.stderr.write(errval)
47 pytest.fail(reason="Sample check failed", pytrace=False)
48
49
50def diff_ranges(

Callers

nothing calls this directly

Calls 3

runMethod · 0.45
writeMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…