{"action":"opened","issue":{"url":"https://api.github.com/repos/python/mypy/issues/2280","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/2280/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/2280/comments","events_url":"https://api.github.com/repos/python/mypy/issues/2280/events","html_url":"https://github.com/python/mypy/issues/2280","id":183956361,"number":2280,"title":"Recognize functions like exit() as not returning","user":{"login":"JukkaL","id":1107911,"avatar_url":"https://avatars.githubusercontent.com/u/1107911?v=3","gravatar_id":"","url":"https://api.github.com/users/JukkaL","html_url":"https://github.com/JukkaL","followers_url":"https://api.github.com/users/JukkaL/followers","following_url":"https://api.github.com/users/JukkaL/following{/other_user}","gists_url":"https://api.github.com/users/JukkaL/gists{/gist_id}","starred_url":"https://api.github.com/users/JukkaL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JukkaL/subscriptions","organizations_url":"https://api.github.com/users/JukkaL/orgs","repos_url":"https://api.github.com/users/JukkaL/repos","events_url":"https://api.github.com/users/JukkaL/events{/privacy}","received_events_url":"https://api.github.com/users/JukkaL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T13:06:35Z","updated_at":"2016-10-19T13:06:35Z","closed_at":null,"body":"This generates a warning when using `--warn-no-return`, even though it's safe:\r\n\r\n```\r\ndef f(x: int) -> int:\r\n    if x == 0:\r\n        return x\r\n    exit(1)\r\n```\r\n\r\nIt would be nice if mypy knew about at least the most common stdlib functions that never return such as `sys.exit`."}}
{"actor":{"display_login":"JukkaL"}}