{"action":"created","issue":{"url":"https://api.github.com/repos/python/mypy/issues/3169","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/3169/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/3169/comments","events_url":"https://api.github.com/repos/python/mypy/issues/3169/events","html_url":"https://github.com/python/mypy/pull/3169","id":221645088,"number":3169,"title":"Stubgen improvements: preserving existing annotations","user":{"login":"dmoisset","id":200733,"avatar_url":"https://avatars2.githubusercontent.com/u/200733?v=4","gravatar_id":"","url":"https://api.github.com/users/dmoisset","html_url":"https://github.com/dmoisset","followers_url":"https://api.github.com/users/dmoisset/followers","following_url":"https://api.github.com/users/dmoisset/following{/other_user}","gists_url":"https://api.github.com/users/dmoisset/gists{/gist_id}","starred_url":"https://api.github.com/users/dmoisset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmoisset/subscriptions","organizations_url":"https://api.github.com/users/dmoisset/orgs","repos_url":"https://api.github.com/users/dmoisset/repos","events_url":"https://api.github.com/users/dmoisset/events{/privacy}","received_events_url":"https://api.github.com/users/dmoisset/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ilevkivskyi","id":12005495,"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},"assignees":[{"login":"ilevkivskyi","id":12005495,"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}],"milestone":null,"comments":11,"created_at":"2017-04-13T18:28:57Z","updated_at":"2017-09-22T16:52:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/python/mypy/pulls/3169","html_url":"https://github.com/python/mypy/pull/3169","diff_url":"https://github.com/python/mypy/pull/3169.diff","patch_url":"https://github.com/python/mypy/pull/3169.patch"},"body":"This PR modifies heavily the stubgen to be able to create better stubs when processing already annotated files (Implements #2106 ). It essentially adds annotations on the stubs for:\r\n* Variables/attributes with annotations\r\n* Annotations on functions/methods\r\n* TypeVar declarations\r\n* Type Aliases\r\nIt also tries to add all the required imports into the stub to make the resulting file valid, and handle properly forward references when necessary. It also adds some fixes (handling of generics as base classes, some formatting fixes in the output) that were natural consequences of some of the refactoring I made.\r\n\r\nI know this is a large patch (and refactors some pieces of the generator), so feel free to comment if it needs discussion.\r\n"},"comment":{"url":"https://api.github.com/repos/python/mypy/issues/comments/331501208","html_url":"https://github.com/python/mypy/pull/3169#issuecomment-331501208","issue_url":"https://api.github.com/repos/python/mypy/issues/3169","id":331501208,"user":{"login":"dmoisset","id":200733,"avatar_url":"https://avatars2.githubusercontent.com/u/200733?v=4","gravatar_id":"","url":"https://api.github.com/users/dmoisset","html_url":"https://github.com/dmoisset","followers_url":"https://api.github.com/users/dmoisset/followers","following_url":"https://api.github.com/users/dmoisset/following{/other_user}","gists_url":"https://api.github.com/users/dmoisset/gists{/gist_id}","starred_url":"https://api.github.com/users/dmoisset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmoisset/subscriptions","organizations_url":"https://api.github.com/users/dmoisset/orgs","repos_url":"https://api.github.com/users/dmoisset/repos","events_url":"https://api.github.com/users/dmoisset/events{/privacy}","received_events_url":"https://api.github.com/users/dmoisset/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T16:52:43Z","updated_at":"2017-09-22T16:52:43Z","author_association":"CONTRIBUTOR","body":"Oh, the apologies are on me; code reviews have been very quick, and the delays have been on my side. My chances to work on this are limited so it can take me a long time to move forward after the reviews"}}
{"actor":{"display_login":"dmoisset"}}