{"action":"created","issue":{"url":"https://api.github.com/repos/python/mypy/issues/1808","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/1808/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/1808/comments","events_url":"https://api.github.com/repos/python/mypy/issues/1808/events","html_url":"https://github.com/python/mypy/pull/1808","id":163971207,"number":1808,"title":"Implement 'async def' and friends ('await', 'async for', 'async with')","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":8,"created_at":"2016-07-05T23:52:25Z","updated_at":"2016-07-27T00:02:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/python/mypy/pulls/1808","html_url":"https://github.com/python/mypy/pull/1808","diff_url":"https://github.com/python/mypy/pull/1808.diff","patch_url":"https://github.com/python/mypy/pull/1808.patch"},"body":"This is not ready for merge, but I have a question. [**UPDATE:** it *is* ready!]\r\n\r\n@JukkaL Why would these two functions not be equivalent?\r\n```\r\nfrom typing import *\r\n\r\nT = TypeVar('T')\r\n\r\nasync def f(x: T) -> T:\r\n    y = await f(x)\r\n    reveal_type(y)\r\n    return y\r\n\r\nasync def g(x: T) -> T:\r\n    gx = g(x)\r\n    y = await gx\r\n    reveal_type(y)\r\n    return y\r\n```\r\nIn f(), the revealed type is `Any`, while in g() it is `T` (spelled as ``'T`-1'``). I would expect it to be `T` in both cases."},"comment":{"url":"https://api.github.com/repos/python/mypy/issues/comments/235442934","html_url":"https://github.com/python/mypy/pull/1808#issuecomment-235442934","issue_url":"https://api.github.com/repos/python/mypy/issues/1808","id":235442934,"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},"created_at":"2016-07-27T00:02:07Z","updated_at":"2016-07-27T00:02:07Z","body":"OK, done.\n"}}
{"actor":{"display_login":"gvanrossum"}}