Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch away from sys.exit(error_msg) in dmypy #5982

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Switch away from sys.exit(error_msg) in dmypy #5982

merged 1 commit into from
Nov 30, 2018

Commits on Nov 30, 2018

  1. Switch away from sys.exit(error_msg) in dmypy

    This kills a couple birds with one stone:
     1. It fixes an interaction with the new run_dmypy api where
        that message winds up as the return code instead of in
        stderr.
        This additionally fixes a type unsoundness/mypy_mypyc crash
        caused by SystemExit.code being typed as int.
     2. It allows us to standardize the irregular exit codes of dmypy
        as 2.
    msullivan committed Nov 30, 2018
    Configuration menu
    Copy the full SHA
    102ecc8 View commit details
    Browse the repository at this point in the history