{"action":"closed","issue":{"url":"https://api.github.com/repos/python/typeshed/issues/2493","repository_url":"https://api.github.com/repos/python/typeshed","labels_url":"https://api.github.com/repos/python/typeshed/issues/2493/labels{/name}","comments_url":"https://api.github.com/repos/python/typeshed/issues/2493/comments","events_url":"https://api.github.com/repos/python/typeshed/issues/2493/events","html_url":"https://github.com/python/typeshed/issues/2493","id":364573875,"node_id":"MDU6SXNzdWUzNjQ1NzM4NzU=","number":2493,"title":"Python 3.7: asyncio.run() and asyncio.create_task() missing","user":{"login":"gjcarneiro","id":2197096,"node_id":"MDQ6VXNlcjIxOTcwOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2197096?v=4","gravatar_id":"","url":"https://api.github.com/users/gjcarneiro","html_url":"https://github.com/gjcarneiro","followers_url":"https://api.github.com/users/gjcarneiro/followers","following_url":"https://api.github.com/users/gjcarneiro/following{/other_user}","gists_url":"https://api.github.com/users/gjcarneiro/gists{/gist_id}","starred_url":"https://api.github.com/users/gjcarneiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjcarneiro/subscriptions","organizations_url":"https://api.github.com/users/gjcarneiro/orgs","repos_url":"https://api.github.com/users/gjcarneiro/repos","events_url":"https://api.github.com/users/gjcarneiro/events{/privacy}","received_events_url":"https://api.github.com/users/gjcarneiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-27T17:17:38Z","updated_at":"2018-10-21T12:48:10Z","closed_at":"2018-10-21T12:48:10Z","author_association":"CONTRIBUTOR","body":"```python3\r\nimport asyncio\r\n\r\n\r\nasync def foo() -> None:\r\n    print(\"hello\")\r\n\r\n\r\nasync def main() -> None:\r\n    await asyncio.create_task(foo())\r\n\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n```\r\n# mypy test.py \r\ntest.py:9: error: Module has no attribute \"create_task\"\r\ntest.py:12: error: Module has no attribute \"run\"\r\n```\r\n\r\nThese two functions are new in Python 3.7 asyncio."}}
{"actor":{"display_login":"srittau"}}