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

Function f

mypy/api.py:84–93  ·  view source on GitHub ↗
(stdout: TextIO, stderr: TextIO)

Source from the content-addressed store, hash-verified

82 # modifying sys.stdout/sys.stderr, but that hasn't been done for
83 # the dmypy client, so we just do the non-threadsafe thing.
84 def f(stdout: TextIO, stderr: TextIO) -> None:
85 old_stdout = sys.stdout
86 old_stderr = sys.stderr
87 try:
88 sys.stdout = stdout
89 sys.stderr = stderr
90 main(args)
91 finally:
92 sys.stdout = old_stdout
93 sys.stderr = old_stderr
94
95 return _run(f)

Callers 2

gFunction · 0.85

Calls 1

mainFunction · 0.90

Tested by 1

gFunction · 0.68