{"action":"opened","issue":{"url":"https://api.github.com/repos/python/mypy/issues/2400","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/2400/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/2400/comments","events_url":"https://api.github.com/repos/python/mypy/issues/2400/events","html_url":"https://github.com/python/mypy/issues/2400","id":187346392,"number":2400,"title":"Not detecting UnboundLocalError","user":{"login":"tlynn","id":329026,"avatar_url":"https://avatars.githubusercontent.com/u/329026?v=3","gravatar_id":"","url":"https://api.github.com/users/tlynn","html_url":"https://github.com/tlynn","followers_url":"https://api.github.com/users/tlynn/followers","following_url":"https://api.github.com/users/tlynn/following{/other_user}","gists_url":"https://api.github.com/users/tlynn/gists{/gist_id}","starred_url":"https://api.github.com/users/tlynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlynn/subscriptions","organizations_url":"https://api.github.com/users/tlynn/orgs","repos_url":"https://api.github.com/users/tlynn/repos","events_url":"https://api.github.com/users/tlynn/events{/privacy}","received_events_url":"https://api.github.com/users/tlynn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-04T14:24:52Z","updated_at":"2016-11-04T14:24:52Z","closed_at":null,"body":"mypy doesn't seem to warn about control flows which might lead to UnboundLocalError, e.g.:\r\n```\r\ndef func(arg):\r\n    if arg:\r\n        variable = 1\r\n    print(variable)\r\n\r\nfunc(0)\r\n```\r\nIs this deliberate?"}}
{"actor":{"display_login":"tlynn"}}