{"action":"opened","issue":{"url":"https://api.github.com/repos/python/typeshed/issues/29","labels_url":"https://api.github.com/repos/python/typeshed/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/python/typeshed/issues/29/comments","events_url":"https://api.github.com/repos/python/typeshed/issues/29/events","html_url":"https://github.com/python/typeshed/issues/29","id":118950932,"number":29,"title":"Add Generator to typing.pyi","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,"milestone":null,"comments":0,"created_at":"2015-11-26T01:08:41Z","updated_at":"2015-11-26T01:08:41Z","closed_at":null,"body":"PEP 484 defines Generator, a subclass of Iterator that can be used as the return type for generators for which you want to use send() and/or get a return value (with `yield from`). This needs to be added to the typing.pyi stubs. I'm not 100% sure that this won't require changes to mypy, for which I added https://github.com/JukkaL/mypy/issues/1011."}}