-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch away from sys.exit(error_msg) in dmypy (#5982)
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.
- Loading branch information
Showing
2 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters