{"action":"created","issue":{"url":"https://api.github.com/repos/python/typing/issues/584","repository_url":"https://api.github.com/repos/python/typing","labels_url":"https://api.github.com/repos/python/typing/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/python/typing/issues/584/comments","events_url":"https://api.github.com/repos/python/typing/issues/584/events","html_url":"https://github.com/python/typing/issues/584","id":365856279,"node_id":"MDU6SXNzdWUzNjU4NTYyNzk=","number":584,"title":"Type declaritions inside for loop.","user":{"login":"midnio","id":36359066,"node_id":"MDQ6VXNlcjM2MzU5MDY2","avatar_url":"https://avatars1.githubusercontent.com/u/36359066?v=4","gravatar_id":"","url":"https://api.github.com/users/midnio","html_url":"https://github.com/midnio","followers_url":"https://api.github.com/users/midnio/followers","following_url":"https://api.github.com/users/midnio/following{/other_user}","gists_url":"https://api.github.com/users/midnio/gists{/gist_id}","starred_url":"https://api.github.com/users/midnio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midnio/subscriptions","organizations_url":"https://api.github.com/users/midnio/orgs","repos_url":"https://api.github.com/users/midnio/repos","events_url":"https://api.github.com/users/midnio/events{/privacy}","received_events_url":"https://api.github.com/users/midnio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-02T11:35:43Z","updated_at":"2018-10-02T11:39:03Z","closed_at":"2018-10-02T11:37:58Z","author_association":"NONE","body":"```python\r\na: List[int] = [2, 7, 8]\r\nfor n: int in a:\r\n    print(n)\r\n```\r\n\r\nOr\r\n\r\n```python\r\na: List[int] = [2, 7, 8]\r\nprint(list(n for n: int in a))\r\n```\r\n\r\nIs there a possible way to do it?\r\n```"},"comment":{"url":"https://api.github.com/repos/python/typing/issues/comments/426241828","html_url":"https://github.com/python/typing/issues/584#issuecomment-426241828","issue_url":"https://api.github.com/repos/python/typing/issues/584","id":426241828,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI0MTgyOA==","user":{"login":"ilevkivskyi","id":12005495,"node_id":"MDQ6VXNlcjEyMDA1NDk1","avatar_url":"https://avatars1.githubusercontent.com/u/12005495?v=4","gravatar_id":"","url":"https://api.github.com/users/ilevkivskyi","html_url":"https://github.com/ilevkivskyi","followers_url":"https://api.github.com/users/ilevkivskyi/followers","following_url":"https://api.github.com/users/ilevkivskyi/following{/other_user}","gists_url":"https://api.github.com/users/ilevkivskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ilevkivskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilevkivskyi/subscriptions","organizations_url":"https://api.github.com/users/ilevkivskyi/orgs","repos_url":"https://api.github.com/users/ilevkivskyi/repos","events_url":"https://api.github.com/users/ilevkivskyi/events{/privacy}","received_events_url":"https://api.github.com/users/ilevkivskyi/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T11:39:03Z","updated_at":"2018-10-02T11:39:03Z","author_association":"COLLABORATOR","body":"This idea was discussed in PEP 526 but was rejected. Currently you can write:\r\n```python\r\nn: int\r\na: List[int] = [2, 7, 8]\r\nfor n in a:\r\n    print(n)\r\n```"}}
{"actor":{"display_login":"ilevkivskyi"}}