{"action":"closed","number":2223,"pull_request":{"url":"https://api.github.com/repos/python/typeshed/pulls/2223","id":194425039,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NDI1MDM5","html_url":"https://github.com/python/typeshed/pull/2223","diff_url":"https://github.com/python/typeshed/pull/2223.diff","patch_url":"https://github.com/python/typeshed/pull/2223.patch","issue_url":"https://api.github.com/repos/python/typeshed/issues/2223","number":2223,"state":"closed","locked":false,"title":"Correct annotation for `fileinput.input`","user":{"login":"asottile","id":1810591,"node_id":"MDQ6VXNlcjE4MTA1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1810591?v=4","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"body":"```python\r\nimport fileinput\r\n\r\nwith fileinput.input(files=('foo.txt',), inplace=True, backup='') as f:\r\n    for line in f:\r\n        print(f'prefix{line}', end='')\r\n```\r\n\r\n```\r\n$ mypy test2.py\r\ntest2.py:3: error: \"Iterable[str]\" has no attribute \"__enter__\"; maybe \"__iter__\"?\r\ntest2.py:3: error: \"Iterable[str]\" has no attribute \"__exit__\"\r\n```\r\n\r\n```\r\n$ mypy test2.py --custom-typeshed typeshed\r\n$\r\n```","created_at":"2018-06-12T22:26:58Z","updated_at":"2018-06-12T22:45:12Z","closed_at":"2018-06-12T22:45:12Z","merged_at":"2018-06-12T22:45:12Z","merge_commit_sha":"c4ee2ed36a73104b8a1413a0c698aa8084eff912","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/python/typeshed/pulls/2223/commits","review_comments_url":"https://api.github.com/repos/python/typeshed/pulls/2223/comments","review_comment_url":"https://api.github.com/repos/python/typeshed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/typeshed/issues/2223/comments","statuses_url":"https://api.github.com/repos/python/typeshed/statuses/a65137be9a75a1bd11945ca4b7b8319ae2b0dd50","head":{"label":"asottile:fix_fileinput_input","ref":"fix_fileinput_input","sha":"a65137be9a75a1bd11945ca4b7b8319ae2b0dd50","user":{"login":"asottile","id":1810591,"node_id":"MDQ6VXNlcjE4MTA1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1810591?v=4","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"repo":{"id":114809456,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ4MDk0NTY=","name":"typeshed","full_name":"asottile/typeshed","owner":{"login":"asottile","id":1810591,"node_id":"MDQ6VXNlcjE4MTA1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1810591?v=4","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asottile/typeshed","description":"Collection of library stubs for Python, with static types","fork":true,"url":"https://api.github.com/repos/asottile/typeshed","forks_url":"https://api.github.com/repos/asottile/typeshed/forks","keys_url":"https://api.github.com/repos/asottile/typeshed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asottile/typeshed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asottile/typeshed/teams","hooks_url":"https://api.github.com/repos/asottile/typeshed/hooks","issue_events_url":"https://api.github.com/repos/asottile/typeshed/issues/events{/number}","events_url":"https://api.github.com/repos/asottile/typeshed/events","assignees_url":"https://api.github.com/repos/asottile/typeshed/assignees{/user}","branches_url":"https://api.github.com/repos/asottile/typeshed/branches{/branch}","tags_url":"https://api.github.com/repos/asottile/typeshed/tags","blobs_url":"https://api.github.com/repos/asottile/typeshed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asottile/typeshed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asottile/typeshed/git/refs{/sha}","trees_url":"https://api.github.com/repos/asottile/typeshed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asottile/typeshed/statuses/{sha}","languages_url":"https://api.github.com/repos/asottile/typeshed/languages","stargazers_url":"https://api.github.com/repos/asottile/typeshed/stargazers","contributors_url":"https://api.github.com/repos/asottile/typeshed/contributors","subscribers_url":"https://api.github.com/repos/asottile/typeshed/subscribers","subscription_url":"https://api.github.com/repos/asottile/typeshed/subscription","commits_url":"https://api.github.com/repos/asottile/typeshed/commits{/sha}","git_commits_url":"https://api.github.com/repos/asottile/typeshed/git/commits{/sha}","comments_url":"https://api.github.com/repos/asottile/typeshed/comments{/number}","issue_comment_url":"https://api.github.com/repos/asottile/typeshed/issues/comments{/number}","contents_url":"https://api.github.com/repos/asottile/typeshed/contents/{+path}","compare_url":"https://api.github.com/repos/asottile/typeshed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asottile/typeshed/merges","archive_url":"https://api.github.com/repos/asottile/typeshed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asottile/typeshed/downloads","issues_url":"https://api.github.com/repos/asottile/typeshed/issues{/number}","pulls_url":"https://api.github.com/repos/asottile/typeshed/pulls{/number}","milestones_url":"https://api.github.com/repos/asottile/typeshed/milestones{/number}","notifications_url":"https://api.github.com/repos/asottile/typeshed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asottile/typeshed/labels{/name}","releases_url":"https://api.github.com/repos/asottile/typeshed/releases{/id}","deployments_url":"https://api.github.com/repos/asottile/typeshed/deployments","created_at":"2017-12-19T20:45:02Z","updated_at":"2017-12-19T20:45:05Z","pushed_at":"2018-06-12T22:25:48Z","git_url":"git://github.com/asottile/typeshed.git","ssh_url":"git@github.com:asottile/typeshed.git","clone_url":"https://github.com/asottile/typeshed.git","svn_url":"https://github.com/asottile/typeshed","homepage":null,"size":2948,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python:master","ref":"master","sha":"de86f15fa0ebbbf79eba95815f8aa3269ebd2ede","user":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/1525981?v=4","gravatar_id":"","url":"https://api.github.com/users/python","html_url":"https://github.com/python","followers_url":"https://api.github.com/users/python/followers","following_url":"https://api.github.com/users/python/following{/other_user}","gists_url":"https://api.github.com/users/python/gists{/gist_id}","starred_url":"https://api.github.com/users/python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python/subscriptions","organizations_url":"https://api.github.com/users/python/orgs","repos_url":"https://api.github.com/users/python/repos","events_url":"https://api.github.com/users/python/events{/privacy}","received_events_url":"https://api.github.com/users/python/received_events","type":"Organization","site_admin":false},"repo":{"id":31696383,"node_id":"MDEwOlJlcG9zaXRvcnkzMTY5NjM4Mw==","name":"typeshed","full_name":"python/typeshed","owner":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/1525981?v=4","gravatar_id":"","url":"https://api.github.com/users/python","html_url":"https://github.com/python","followers_url":"https://api.github.com/users/python/followers","following_url":"https://api.github.com/users/python/following{/other_user}","gists_url":"https://api.github.com/users/python/gists{/gist_id}","starred_url":"https://api.github.com/users/python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python/subscriptions","organizations_url":"https://api.github.com/users/python/orgs","repos_url":"https://api.github.com/users/python/repos","events_url":"https://api.github.com/users/python/events{/privacy}","received_events_url":"https://api.github.com/users/python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python/typeshed","description":"Collection of library stubs for Python, with static types","fork":false,"url":"https://api.github.com/repos/python/typeshed","forks_url":"https://api.github.com/repos/python/typeshed/forks","keys_url":"https://api.github.com/repos/python/typeshed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python/typeshed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python/typeshed/teams","hooks_url":"https://api.github.com/repos/python/typeshed/hooks","issue_events_url":"https://api.github.com/repos/python/typeshed/issues/events{/number}","events_url":"https://api.github.com/repos/python/typeshed/events","assignees_url":"https://api.github.com/repos/python/typeshed/assignees{/user}","branches_url":"https://api.github.com/repos/python/typeshed/branches{/branch}","tags_url":"https://api.github.com/repos/python/typeshed/tags","blobs_url":"https://api.github.com/repos/python/typeshed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python/typeshed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python/typeshed/git/refs{/sha}","trees_url":"https://api.github.com/repos/python/typeshed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python/typeshed/statuses/{sha}","languages_url":"https://api.github.com/repos/python/typeshed/languages","stargazers_url":"https://api.github.com/repos/python/typeshed/stargazers","contributors_url":"https://api.github.com/repos/python/typeshed/contributors","subscribers_url":"https://api.github.com/repos/python/typeshed/subscribers","subscription_url":"https://api.github.com/repos/python/typeshed/subscription","commits_url":"https://api.github.com/repos/python/typeshed/commits{/sha}","git_commits_url":"https://api.github.com/repos/python/typeshed/git/commits{/sha}","comments_url":"https://api.github.com/repos/python/typeshed/comments{/number}","issue_comment_url":"https://api.github.com/repos/python/typeshed/issues/comments{/number}","contents_url":"https://api.github.com/repos/python/typeshed/contents/{+path}","compare_url":"https://api.github.com/repos/python/typeshed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python/typeshed/merges","archive_url":"https://api.github.com/repos/python/typeshed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python/typeshed/downloads","issues_url":"https://api.github.com/repos/python/typeshed/issues{/number}","pulls_url":"https://api.github.com/repos/python/typeshed/pulls{/number}","milestones_url":"https://api.github.com/repos/python/typeshed/milestones{/number}","notifications_url":"https://api.github.com/repos/python/typeshed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python/typeshed/labels{/name}","releases_url":"https://api.github.com/repos/python/typeshed/releases{/id}","deployments_url":"https://api.github.com/repos/python/typeshed/deployments","created_at":"2015-03-05T04:51:28Z","updated_at":"2018-06-12T16:20:29Z","pushed_at":"2018-06-12T22:45:12Z","git_url":"git://github.com/python/typeshed.git","ssh_url":"git@github.com:python/typeshed.git","clone_url":"https://github.com/python/typeshed.git","svn_url":"https://github.com/python/typeshed","homepage":null,"size":3430,"stargazers_count":739,"watchers_count":739,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":444,"mirror_url":null,"archived":false,"open_issues_count":105,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":444,"open_issues":105,"watchers":739,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python/typeshed/pulls/2223"},"html":{"href":"https://github.com/python/typeshed/pull/2223"},"issue":{"href":"https://api.github.com/repos/python/typeshed/issues/2223"},"comments":{"href":"https://api.github.com/repos/python/typeshed/issues/2223/comments"},"review_comments":{"href":"https://api.github.com/repos/python/typeshed/pulls/2223/comments"},"review_comment":{"href":"https://api.github.com/repos/python/typeshed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python/typeshed/pulls/2223/commits"},"statuses":{"href":"https://api.github.com/repos/python/typeshed/statuses/a65137be9a75a1bd11945ca4b7b8319ae2b0dd50"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"JelleZijlstra","id":906600,"node_id":"MDQ6VXNlcjkwNjYwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/906600?v=4","gravatar_id":"","url":"https://api.github.com/users/JelleZijlstra","html_url":"https://github.com/JelleZijlstra","followers_url":"https://api.github.com/users/JelleZijlstra/followers","following_url":"https://api.github.com/users/JelleZijlstra/following{/other_user}","gists_url":"https://api.github.com/users/JelleZijlstra/gists{/gist_id}","starred_url":"https://api.github.com/users/JelleZijlstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelleZijlstra/subscriptions","organizations_url":"https://api.github.com/users/JelleZijlstra/orgs","repos_url":"https://api.github.com/users/JelleZijlstra/repos","events_url":"https://api.github.com/users/JelleZijlstra/events{/privacy}","received_events_url":"https://api.github.com/users/JelleZijlstra/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"JelleZijlstra"}}