{"action":"opened","issue":{"url":"https://api.github.com/repos/python/mypy/issues/1855","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/1855/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/1855/comments","events_url":"https://api.github.com/repos/python/mypy/issues/1855/events","html_url":"https://github.com/python/mypy/issues/1855","id":165228933,"number":1855,"title":"error: 'Union[Any, Tuple[Any, Any]]' object is not iterable","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-13T03:22:54Z","updated_at":"2016-07-13T03:22:54Z","closed_at":null,"body":"Code:\r\n```python\r\nfrom typing import *\r\nPair = Tuple[Any, Any]\r\ndef f(a: Union[Any, Pair]):\r\n    x, y = a  # E: 'Union[Any, Tuple[Any, Any]]' object is not iterable\r\n```\r\nIf the type of argument is either just `Any` or just `Pair` the code passes. But with the union it gives the error."}}
{"actor":{"display_login":"gvanrossum"}}