{"action":"opened","number":6035,"pull_request":{"url":"https://api.github.com/repos/python/mypy/pulls/6035","id":237102565,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTAyNTY1","html_url":"https://github.com/python/mypy/pull/6035","diff_url":"https://github.com/python/mypy/pull/6035.diff","patch_url":"https://github.com/python/mypy/pull/6035.patch","issue_url":"https://api.github.com/repos/python/mypy/issues/6035","number":6035,"state":"open","locked":false,"title":"Add tests for literals and generics","user":{"login":"Michael0x2a","id":1424628,"node_id":"MDQ6VXNlcjE0MjQ2Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/1424628?v=4","gravatar_id":"","url":"https://api.github.com/users/Michael0x2a","html_url":"https://github.com/Michael0x2a","followers_url":"https://api.github.com/users/Michael0x2a/followers","following_url":"https://api.github.com/users/Michael0x2a/following{/other_user}","gists_url":"https://api.github.com/users/Michael0x2a/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael0x2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael0x2a/subscriptions","organizations_url":"https://api.github.com/users/Michael0x2a/orgs","repos_url":"https://api.github.com/users/Michael0x2a/repos","events_url":"https://api.github.com/users/Michael0x2a/events{/privacy}","received_events_url":"https://api.github.com/users/Michael0x2a/received_events","type":"User","site_admin":false},"body":"This pull request adds some tests verifying that basic interactions between literals and generics work as expected.\r\n\r\nIt also mildly tweaks checkexpr so it actually considers the *whole* type context instead of just part of it when deciding whether some literal expression ought to be a Literal[...] type or not.\r\n","created_at":"2018-12-09T01:50:56Z","updated_at":"2018-12-09T01:50:56Z","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/6035/commits","review_comments_url":"https://api.github.com/repos/python/mypy/pulls/6035/comments","review_comment_url":"https://api.github.com/repos/python/mypy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/mypy/issues/6035/comments","statuses_url":"https://api.github.com/repos/python/mypy/statuses/844b9f22d6f5f21f079323bb1740f97b041d27b1","head":{"label":"Michael0x2a:add-tests-for-literals-and-generics","ref":"add-tests-for-literals-and-generics","sha":"844b9f22d6f5f21f079323bb1740f97b041d27b1","user":{"login":"Michael0x2a","id":1424628,"node_id":"MDQ6VXNlcjE0MjQ2Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/1424628?v=4","gravatar_id":"","url":"https://api.github.com/users/Michael0x2a","html_url":"https://github.com/Michael0x2a","followers_url":"https://api.github.com/users/Michael0x2a/followers","following_url":"https://api.github.com/users/Michael0x2a/following{/other_user}","gists_url":"https://api.github.com/users/Michael0x2a/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael0x2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael0x2a/subscriptions","organizations_url":"https://api.github.com/users/Michael0x2a/orgs","repos_url":"https://api.github.com/users/Michael0x2a/repos","events_url":"https://api.github.com/users/Michael0x2a/events{/privacy}","received_events_url":"https://api.github.com/users/Michael0x2a/received_events","type":"User","site_admin":false},"repo":{"id":62247533,"node_id":"MDEwOlJlcG9zaXRvcnk2MjI0NzUzMw==","name":"mypy","full_name":"Michael0x2a/mypy","private":false,"owner":{"login":"Michael0x2a","id":1424628,"node_id":"MDQ6VXNlcjE0MjQ2Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/1424628?v=4","gravatar_id":"","url":"https://api.github.com/users/Michael0x2a","html_url":"https://github.com/Michael0x2a","followers_url":"https://api.github.com/users/Michael0x2a/followers","following_url":"https://api.github.com/users/Michael0x2a/following{/other_user}","gists_url":"https://api.github.com/users/Michael0x2a/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael0x2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael0x2a/subscriptions","organizations_url":"https://api.github.com/users/Michael0x2a/orgs","repos_url":"https://api.github.com/users/Michael0x2a/repos","events_url":"https://api.github.com/users/Michael0x2a/events{/privacy}","received_events_url":"https://api.github.com/users/Michael0x2a/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Michael0x2a/mypy","description":"Optional static typing for Python 2 and 3 (PEP484)","fork":true,"url":"https://api.github.com/repos/Michael0x2a/mypy","forks_url":"https://api.github.com/repos/Michael0x2a/mypy/forks","keys_url":"https://api.github.com/repos/Michael0x2a/mypy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Michael0x2a/mypy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Michael0x2a/mypy/teams","hooks_url":"https://api.github.com/repos/Michael0x2a/mypy/hooks","issue_events_url":"https://api.github.com/repos/Michael0x2a/mypy/issues/events{/number}","events_url":"https://api.github.com/repos/Michael0x2a/mypy/events","assignees_url":"https://api.github.com/repos/Michael0x2a/mypy/assignees{/user}","branches_url":"https://api.github.com/repos/Michael0x2a/mypy/branches{/branch}","tags_url":"https://api.github.com/repos/Michael0x2a/mypy/tags","blobs_url":"https://api.github.com/repos/Michael0x2a/mypy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Michael0x2a/mypy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Michael0x2a/mypy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Michael0x2a/mypy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Michael0x2a/mypy/statuses/{sha}","languages_url":"https://api.github.com/repos/Michael0x2a/mypy/languages","stargazers_url":"https://api.github.com/repos/Michael0x2a/mypy/stargazers","contributors_url":"https://api.github.com/repos/Michael0x2a/mypy/contributors","subscribers_url":"https://api.github.com/repos/Michael0x2a/mypy/subscribers","subscription_url":"https://api.github.com/repos/Michael0x2a/mypy/subscription","commits_url":"https://api.github.com/repos/Michael0x2a/mypy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Michael0x2a/mypy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Michael0x2a/mypy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Michael0x2a/mypy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Michael0x2a/mypy/contents/{+path}","compare_url":"https://api.github.com/repos/Michael0x2a/mypy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Michael0x2a/mypy/merges","archive_url":"https://api.github.com/repos/Michael0x2a/mypy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Michael0x2a/mypy/downloads","issues_url":"https://api.github.com/repos/Michael0x2a/mypy/issues{/number}","pulls_url":"https://api.github.com/repos/Michael0x2a/mypy/pulls{/number}","milestones_url":"https://api.github.com/repos/Michael0x2a/mypy/milestones{/number}","notifications_url":"https://api.github.com/repos/Michael0x2a/mypy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Michael0x2a/mypy/labels{/name}","releases_url":"https://api.github.com/repos/Michael0x2a/mypy/releases{/id}","deployments_url":"https://api.github.com/repos/Michael0x2a/mypy/deployments","created_at":"2016-06-29T18:12:20Z","updated_at":"2018-12-08T22:17:05Z","pushed_at":"2018-12-09T01:50:29Z","git_url":"git://github.com/Michael0x2a/mypy.git","ssh_url":"git@github.com:Michael0x2a/mypy.git","clone_url":"https://github.com/Michael0x2a/mypy.git","svn_url":"https://github.com/Michael0x2a/mypy","homepage":"http://www.mypy-lang.org/","size":29592,"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":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python:master","ref":"master","sha":"49726682ad93af49ae2efdbe44b55e966d99165a","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","private":false,"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},"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-12-08T20:56:46Z","pushed_at":"2018-12-08T22:45:36Z","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":29671,"stargazers_count":5064,"watchers_count":5064,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":693,"mirror_url":null,"archived":false,"open_issues_count":943,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":693,"open_issues":943,"watchers":5064,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python/mypy/pulls/6035"},"html":{"href":"https://github.com/python/mypy/pull/6035"},"issue":{"href":"https://api.github.com/repos/python/mypy/issues/6035"},"comments":{"href":"https://api.github.com/repos/python/mypy/issues/6035/comments"},"review_comments":{"href":"https://api.github.com/repos/python/mypy/pulls/6035/comments"},"review_comment":{"href":"https://api.github.com/repos/python/mypy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python/mypy/pulls/6035/commits"},"statuses":{"href":"https://api.github.com/repos/python/mypy/statuses/844b9f22d6f5f21f079323bb1740f97b041d27b1"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":205,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"Michael0x2a"}}