{"action":"opened","number":5619,"pull_request":{"url":"https://api.github.com/repos/python/mypy/pulls/5619","id":215625310,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NjI1MzEw","html_url":"https://github.com/python/mypy/pull/5619","diff_url":"https://github.com/python/mypy/pull/5619.diff","patch_url":"https://github.com/python/mypy/pull/5619.patch","issue_url":"https://api.github.com/repos/python/mypy/issues/5619","number":5619,"state":"open","locked":false,"title":"Let -2 argument dest match --python-version's","user":{"login":"sqwishy","id":131432,"node_id":"MDQ6VXNlcjEzMTQzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/131432?v=4","gravatar_id":"","url":"https://api.github.com/users/sqwishy","html_url":"https://github.com/sqwishy","followers_url":"https://api.github.com/users/sqwishy/followers","following_url":"https://api.github.com/users/sqwishy/following{/other_user}","gists_url":"https://api.github.com/users/sqwishy/gists{/gist_id}","starred_url":"https://api.github.com/users/sqwishy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqwishy/subscriptions","organizations_url":"https://api.github.com/users/sqwishy/orgs","repos_url":"https://api.github.com/users/sqwishy/repos","events_url":"https://api.github.com/users/sqwishy/events{/privacy}","received_events_url":"https://api.github.com/users/sqwishy/received_events","type":"User","site_admin":false},"body":"Hi. This addresses issue #5576. The pull request #5578 had stuff in it that broke things so this is a smaller change.\r\n\r\nCurrently, `mypy -2` behaves differently from `mypy --python-version 2.7` in that only the latter will look for typing information in the Python 2 site packages. When `-2` only is passed it ends up setting a value on a different namespace. With this change, the value is set up the same namespace and attribute that `--python-version` sets. (See also https://github.com/python/mypy/issues/5576#issuecomment-418872062)\r\n\r\nThere is still this inconsistency when loading the python version from the ini file, this will have to be addressed in another issue and pull request since the desired behaviour is unclear.","created_at":"2018-09-14T15:08:51Z","updated_at":"2018-09-14T15:08:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/python/mypy/pulls/5619/commits","review_comments_url":"https://api.github.com/repos/python/mypy/pulls/5619/comments","review_comment_url":"https://api.github.com/repos/python/mypy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/mypy/issues/5619/comments","statuses_url":"https://api.github.com/repos/python/mypy/statuses/857a7d3a433afd09fadaaea4194caf4fc1d3c6bd","head":{"label":"sqwishy:5567-version-arg-parsing","ref":"5567-version-arg-parsing","sha":"857a7d3a433afd09fadaaea4194caf4fc1d3c6bd","user":{"login":"sqwishy","id":131432,"node_id":"MDQ6VXNlcjEzMTQzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/131432?v=4","gravatar_id":"","url":"https://api.github.com/users/sqwishy","html_url":"https://github.com/sqwishy","followers_url":"https://api.github.com/users/sqwishy/followers","following_url":"https://api.github.com/users/sqwishy/following{/other_user}","gists_url":"https://api.github.com/users/sqwishy/gists{/gist_id}","starred_url":"https://api.github.com/users/sqwishy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqwishy/subscriptions","organizations_url":"https://api.github.com/users/sqwishy/orgs","repos_url":"https://api.github.com/users/sqwishy/repos","events_url":"https://api.github.com/users/sqwishy/events{/privacy}","received_events_url":"https://api.github.com/users/sqwishy/received_events","type":"User","site_admin":false},"repo":{"id":147615959,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2MTU5NTk=","name":"mypy","full_name":"sqwishy/mypy","owner":{"login":"sqwishy","id":131432,"node_id":"MDQ6VXNlcjEzMTQzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/131432?v=4","gravatar_id":"","url":"https://api.github.com/users/sqwishy","html_url":"https://github.com/sqwishy","followers_url":"https://api.github.com/users/sqwishy/followers","following_url":"https://api.github.com/users/sqwishy/following{/other_user}","gists_url":"https://api.github.com/users/sqwishy/gists{/gist_id}","starred_url":"https://api.github.com/users/sqwishy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqwishy/subscriptions","organizations_url":"https://api.github.com/users/sqwishy/orgs","repos_url":"https://api.github.com/users/sqwishy/repos","events_url":"https://api.github.com/users/sqwishy/events{/privacy}","received_events_url":"https://api.github.com/users/sqwishy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sqwishy/mypy","description":"Optional static typing for Python 2 and 3 (PEP 484)","fork":true,"url":"https://api.github.com/repos/sqwishy/mypy","forks_url":"https://api.github.com/repos/sqwishy/mypy/forks","keys_url":"https://api.github.com/repos/sqwishy/mypy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sqwishy/mypy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sqwishy/mypy/teams","hooks_url":"https://api.github.com/repos/sqwishy/mypy/hooks","issue_events_url":"https://api.github.com/repos/sqwishy/mypy/issues/events{/number}","events_url":"https://api.github.com/repos/sqwishy/mypy/events","assignees_url":"https://api.github.com/repos/sqwishy/mypy/assignees{/user}","branches_url":"https://api.github.com/repos/sqwishy/mypy/branches{/branch}","tags_url":"https://api.github.com/repos/sqwishy/mypy/tags","blobs_url":"https://api.github.com/repos/sqwishy/mypy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sqwishy/mypy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sqwishy/mypy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sqwishy/mypy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sqwishy/mypy/statuses/{sha}","languages_url":"https://api.github.com/repos/sqwishy/mypy/languages","stargazers_url":"https://api.github.com/repos/sqwishy/mypy/stargazers","contributors_url":"https://api.github.com/repos/sqwishy/mypy/contributors","subscribers_url":"https://api.github.com/repos/sqwishy/mypy/subscribers","subscription_url":"https://api.github.com/repos/sqwishy/mypy/subscription","commits_url":"https://api.github.com/repos/sqwishy/mypy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sqwishy/mypy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sqwishy/mypy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sqwishy/mypy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sqwishy/mypy/contents/{+path}","compare_url":"https://api.github.com/repos/sqwishy/mypy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sqwishy/mypy/merges","archive_url":"https://api.github.com/repos/sqwishy/mypy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sqwishy/mypy/downloads","issues_url":"https://api.github.com/repos/sqwishy/mypy/issues{/number}","pulls_url":"https://api.github.com/repos/sqwishy/mypy/pulls{/number}","milestones_url":"https://api.github.com/repos/sqwishy/mypy/milestones{/number}","notifications_url":"https://api.github.com/repos/sqwishy/mypy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sqwishy/mypy/labels{/name}","releases_url":"https://api.github.com/repos/sqwishy/mypy/releases{/id}","deployments_url":"https://api.github.com/repos/sqwishy/mypy/deployments","created_at":"2018-09-06T04:08:58Z","updated_at":"2018-09-06T04:09:01Z","pushed_at":"2018-09-14T14:59:52Z","git_url":"git://github.com/sqwishy/mypy.git","ssh_url":"git@github.com:sqwishy/mypy.git","clone_url":"https://github.com/sqwishy/mypy.git","svn_url":"https://github.com/sqwishy/mypy","homepage":"http://www.mypy-lang.org/","size":27920,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python:master","ref":"master","sha":"38b49873bd6f62f556b0dc516366fffd3c735160","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":7053637,"node_id":"MDEwOlJlcG9zaXRvcnk3MDUzNjM3","name":"mypy","full_name":"python/mypy","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/mypy","description":"Optional static typing for Python 2 and 3 (PEP 484)","fork":false,"url":"https://api.github.com/repos/python/mypy","forks_url":"https://api.github.com/repos/python/mypy/forks","keys_url":"https://api.github.com/repos/python/mypy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python/mypy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python/mypy/teams","hooks_url":"https://api.github.com/repos/python/mypy/hooks","issue_events_url":"https://api.github.com/repos/python/mypy/issues/events{/number}","events_url":"https://api.github.com/repos/python/mypy/events","assignees_url":"https://api.github.com/repos/python/mypy/assignees{/user}","branches_url":"https://api.github.com/repos/python/mypy/branches{/branch}","tags_url":"https://api.github.com/repos/python/mypy/tags","blobs_url":"https://api.github.com/repos/python/mypy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python/mypy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python/mypy/git/refs{/sha}","trees_url":"https://api.github.com/repos/python/mypy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python/mypy/statuses/{sha}","languages_url":"https://api.github.com/repos/python/mypy/languages","stargazers_url":"https://api.github.com/repos/python/mypy/stargazers","contributors_url":"https://api.github.com/repos/python/mypy/contributors","subscribers_url":"https://api.github.com/repos/python/mypy/subscribers","subscription_url":"https://api.github.com/repos/python/mypy/subscription","commits_url":"https://api.github.com/repos/python/mypy/commits{/sha}","git_commits_url":"https://api.github.com/repos/python/mypy/git/commits{/sha}","comments_url":"https://api.github.com/repos/python/mypy/comments{/number}","issue_comment_url":"https://api.github.com/repos/python/mypy/issues/comments{/number}","contents_url":"https://api.github.com/repos/python/mypy/contents/{+path}","compare_url":"https://api.github.com/repos/python/mypy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python/mypy/merges","archive_url":"https://api.github.com/repos/python/mypy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python/mypy/downloads","issues_url":"https://api.github.com/repos/python/mypy/issues{/number}","pulls_url":"https://api.github.com/repos/python/mypy/pulls{/number}","milestones_url":"https://api.github.com/repos/python/mypy/milestones{/number}","notifications_url":"https://api.github.com/repos/python/mypy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python/mypy/labels{/name}","releases_url":"https://api.github.com/repos/python/mypy/releases{/id}","deployments_url":"https://api.github.com/repos/python/mypy/deployments","created_at":"2012-12-07T13:30:23Z","updated_at":"2018-09-14T11:12:48Z","pushed_at":"2018-09-13T22:02:53Z","git_url":"git://github.com/python/mypy.git","ssh_url":"git@github.com:python/mypy.git","clone_url":"https://github.com/python/mypy.git","svn_url":"https://github.com/python/mypy","homepage":"http://www.mypy-lang.org/","size":28074,"stargazers_count":4527,"watchers_count":4527,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":622,"mirror_url":null,"archived":false,"open_issues_count":896,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":622,"open_issues":896,"watchers":4527,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python/mypy/pulls/5619"},"html":{"href":"https://github.com/python/mypy/pull/5619"},"issue":{"href":"https://api.github.com/repos/python/mypy/issues/5619"},"comments":{"href":"https://api.github.com/repos/python/mypy/issues/5619/comments"},"review_comments":{"href":"https://api.github.com/repos/python/mypy/pulls/5619/comments"},"review_comment":{"href":"https://api.github.com/repos/python/mypy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python/mypy/pulls/5619/commits"},"statuses":{"href":"https://api.github.com/repos/python/mypy/statuses/857a7d3a433afd09fadaaea4194caf4fc1d3c6bd"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"sqwishy"}}