This generates a warning when using `--warn-no-return`, even though it's safe: ``` def f(x: int) -> int: if x == 0: return x exit(1) ``` It would be nice if mypy knew about at least the most common stdlib functions that never return such as `sys.exit`.
This generates a warning when using
--warn-no-return, even though it's safe:It would be nice if mypy knew about at least the most common stdlib functions that never return such as
sys.exit.