Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix sys.stdout overriding in mypy.api #6750
Sadly this is not enough. When
For example, I have this simple test program:
import mypy.api stdout, stderr, exitcode = mypy.api.run(['-v', '_.py']) print('=== stdout ===') print(stdout) print('=== stderr ===') print(stderr) print('=== exit %d ===' % exitcode)
Note that without your patch, the LOG entries are printed under the
I realized the issue with it when I read through the contributing guidelines a bit more thoroughly and saw it said to not squash them on my end. I believe it's ready for review. It's possible that I missed something in my fixes or that things were messed up when I rebased to the current master, but I think I got all the code reachable from the api, and the simple test program you provided has the expected output.