{"action":"created","issue":{"url":"https://api.github.com/repos/JukkaL/mypy/issues/1171","labels_url":"https://api.github.com/repos/JukkaL/mypy/issues/1171/labels{/name}","comments_url":"https://api.github.com/repos/JukkaL/mypy/issues/1171/comments","events_url":"https://api.github.com/repos/JukkaL/mypy/issues/1171/events","html_url":"https://github.com/JukkaL/mypy/issues/1171","id":129249146,"number":1171,"title":"Issues with class defined inside toplevel for-loop","user":{"login":"gvanrossum","id":2894642,"avatar_url":"https://avatars.githubusercontent.com/u/2894642?v=3","gravatar_id":"","url":"https://api.github.com/users/gvanrossum","html_url":"https://github.com/gvanrossum","followers_url":"https://api.github.com/users/gvanrossum/followers","following_url":"https://api.github.com/users/gvanrossum/following{/other_user}","gists_url":"https://api.github.com/users/gvanrossum/gists{/gist_id}","starred_url":"https://api.github.com/users/gvanrossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvanrossum/subscriptions","organizations_url":"https://api.github.com/users/gvanrossum/orgs","repos_url":"https://api.github.com/users/gvanrossum/repos","events_url":"https://api.github.com/users/gvanrossum/events{/privacy}","received_events_url":"https://api.github.com/users/gvanrossum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JukkaL/mypy/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-27T19:47:48Z","updated_at":"2016-01-28T15:03:45Z","closed_at":null,"body":"Repro:\r\n```\r\nfor x in [1, 2]:\r\n    class C(object):\r\n        pass\r\nC\r\n```"},"comment":{"url":"https://api.github.com/repos/JukkaL/mypy/issues/comments/176226899","html_url":"https://github.com/JukkaL/mypy/issues/1171#issuecomment-176226899","issue_url":"https://api.github.com/repos/JukkaL/mypy/issues/1171","id":176226899,"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},"created_at":"2016-01-28T15:03:45Z","updated_at":"2016-01-28T15:03:45Z","body":"I believe this is because one of the early passes of semantic analysis doesn't look inside for loops. Should be easy to fix."}}