{"action":"created","comment":{"url":"https://api.github.com/repos/python/mypy/pulls/comments/65786858","id":65786858,"diff_hunk":"@@ -1827,13 +1827,15 @@ def visit_try_stmt(self, s: TryStmt) -> Type:\n     def visit_except_handler_test(self, n: Node) -> Type:\n         \"\"\"Type check an exception handler test clause.\"\"\"\n         type = self.accept(n)\n-        if isinstance(type, AnyType):\n-            return type\n \n         all_types = []  # type: List[Type]\n         test_types = type.items if isinstance(type, TupleType) else [type]\n \n         for ttype in test_types:\n+            if isinstance(ttype, AnyType):\n+                all_types.append(ttype)","path":"mypy/checker.py","position":12,"original_position":12,"commit_id":"d11b4bc934a510499ec0404a3294476ce03b6d82","original_commit_id":"d11b4bc934a510499ec0404a3294476ce03b6d82","user":{"login":"ddfisher","id":245905,"avatar_url":"https://avatars.githubusercontent.com/u/245905?v=3","gravatar_id":"","url":"https://api.github.com/users/ddfisher","html_url":"https://github.com/ddfisher","followers_url":"https://api.github.com/users/ddfisher/followers","following_url":"https://api.github.com/users/ddfisher/following{/other_user}","gists_url":"https://api.github.com/users/ddfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/ddfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddfisher/subscriptions","organizations_url":"https://api.github.com/users/ddfisher/orgs","repos_url":"https://api.github.com/users/ddfisher/repos","events_url":"https://api.github.com/users/ddfisher/events{/privacy}","received_events_url":"https://api.github.com/users/ddfisher/received_events","type":"User","site_admin":false},"body":"You can just `return AnyType()` here instead.  `UnionType.make_simplified_union` returns `AnyType` if any of the types passed to it are `AnyType` (as it should).","created_at":"2016-06-03T22:51:04Z","updated_at":"2016-06-03T22:51:04Z","html_url":"https://github.com/python/mypy/pull/1639#discussion_r65786858","pull_request_url":"https://api.github.com/repos/python/mypy/pulls/1639","_links":{"self":{"href":"https://api.github.com/repos/python/mypy/pulls/comments/65786858"},"html":{"href":"https://github.com/python/mypy/pull/1639#discussion_r65786858"},"pull_request":{"href":"https://api.github.com/repos/python/mypy/pulls/1639"}}},"pull_request":{"url":"https://api.github.com/repos/python/mypy/pulls/1639","id":72579572,"html_url":"https://github.com/python/mypy/pull/1639","diff_url":"https://github.com/python/mypy/pull/1639.diff","patch_url":"https://github.com/python/mypy/pull/1639.patch","issue_url":"https://api.github.com/repos/python/mypy/issues/1639","number":1639,"state":"open","locked":false,"title":"Allow `Any` types for tuple except handler tests","user":{"login":"pdmccormick","id":31069,"avatar_url":"https://avatars.githubusercontent.com/u/31069?v=3","gravatar_id":"","url":"https://api.github.com/users/pdmccormick","html_url":"https://github.com/pdmccormick","followers_url":"https://api.github.com/users/pdmccormick/followers","following_url":"https://api.github.com/users/pdmccormick/following{/other_user}","gists_url":"https://api.github.com/users/pdmccormick/gists{/gist_id}","starred_url":"https://api.github.com/users/pdmccormick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdmccormick/subscriptions","organizations_url":"https://api.github.com/users/pdmccormick/orgs","repos_url":"https://api.github.com/users/pdmccormick/repos","events_url":"https://api.github.com/users/pdmccormick/events{/privacy}","received_events_url":"https://api.github.com/users/pdmccormick/received_events","type":"User","site_admin":false},"body":"Fixes #1635.","created_at":"2016-06-03T22:37:34Z","updated_at":"2016-06-03T22:51:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9b12faebf7a691f8d2f0caad14cd41f8df67dff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python/mypy/pulls/1639/commits","review_comments_url":"https://api.github.com/repos/python/mypy/pulls/1639/comments","review_comment_url":"https://api.github.com/repos/python/mypy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/mypy/issues/1639/comments","statuses_url":"https://api.github.com/repos/python/mypy/statuses/d11b4bc934a510499ec0404a3294476ce03b6d82","head":{"label":"pdmccormick:issue-1635-tuple-except-any-fail","ref":"issue-1635-tuple-except-any-fail","sha":"d11b4bc934a510499ec0404a3294476ce03b6d82","user":{"login":"pdmccormick","id":31069,"avatar_url":"https://avatars.githubusercontent.com/u/31069?v=3","gravatar_id":"","url":"https://api.github.com/users/pdmccormick","html_url":"https://github.com/pdmccormick","followers_url":"https://api.github.com/users/pdmccormick/followers","following_url":"https://api.github.com/users/pdmccormick/following{/other_user}","gists_url":"https://api.github.com/users/pdmccormick/gists{/gist_id}","starred_url":"https://api.github.com/users/pdmccormick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdmccormick/subscriptions","organizations_url":"https://api.github.com/users/pdmccormick/orgs","repos_url":"https://api.github.com/users/pdmccormick/repos","events_url":"https://api.github.com/users/pdmccormick/events{/privacy}","received_events_url":"https://api.github.com/users/pdmccormick/received_events","type":"User","site_admin":false},"repo":{"id":60294709,"name":"mypy","full_name":"pdmccormick/mypy","owner":{"login":"pdmccormick","id":31069,"avatar_url":"https://avatars.githubusercontent.com/u/31069?v=3","gravatar_id":"","url":"https://api.github.com/users/pdmccormick","html_url":"https://github.com/pdmccormick","followers_url":"https://api.github.com/users/pdmccormick/followers","following_url":"https://api.github.com/users/pdmccormick/following{/other_user}","gists_url":"https://api.github.com/users/pdmccormick/gists{/gist_id}","starred_url":"https://api.github.com/users/pdmccormick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdmccormick/subscriptions","organizations_url":"https://api.github.com/users/pdmccormick/orgs","repos_url":"https://api.github.com/users/pdmccormick/repos","events_url":"https://api.github.com/users/pdmccormick/events{/privacy}","received_events_url":"https://api.github.com/users/pdmccormick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pdmccormick/mypy","description":"Optional static typing for Python","fork":true,"url":"https://api.github.com/repos/pdmccormick/mypy","forks_url":"https://api.github.com/repos/pdmccormick/mypy/forks","keys_url":"https://api.github.com/repos/pdmccormick/mypy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pdmccormick/mypy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pdmccormick/mypy/teams","hooks_url":"https://api.github.com/repos/pdmccormick/mypy/hooks","issue_events_url":"https://api.github.com/repos/pdmccormick/mypy/issues/events{/number}","events_url":"https://api.github.com/repos/pdmccormick/mypy/events","assignees_url":"https://api.github.com/repos/pdmccormick/mypy/assignees{/user}","branches_url":"https://api.github.com/repos/pdmccormick/mypy/branches{/branch}","tags_url":"https://api.github.com/repos/pdmccormick/mypy/tags","blobs_url":"https://api.github.com/repos/pdmccormick/mypy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pdmccormick/mypy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pdmccormick/mypy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pdmccormick/mypy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pdmccormick/mypy/statuses/{sha}","languages_url":"https://api.github.com/repos/pdmccormick/mypy/languages","stargazers_url":"https://api.github.com/repos/pdmccormick/mypy/stargazers","contributors_url":"https://api.github.com/repos/pdmccormick/mypy/contributors","subscribers_url":"https://api.github.com/repos/pdmccormick/mypy/subscribers","subscription_url":"https://api.github.com/repos/pdmccormick/mypy/subscription","commits_url":"https://api.github.com/repos/pdmccormick/mypy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pdmccormick/mypy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pdmccormick/mypy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pdmccormick/mypy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pdmccormick/mypy/contents/{+path}","compare_url":"https://api.github.com/repos/pdmccormick/mypy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pdmccormick/mypy/merges","archive_url":"https://api.github.com/repos/pdmccormick/mypy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pdmccormick/mypy/downloads","issues_url":"https://api.github.com/repos/pdmccormick/mypy/issues{/number}","pulls_url":"https://api.github.com/repos/pdmccormick/mypy/pulls{/number}","milestones_url":"https://api.github.com/repos/pdmccormick/mypy/milestones{/number}","notifications_url":"https://api.github.com/repos/pdmccormick/mypy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pdmccormick/mypy/labels{/name}","releases_url":"https://api.github.com/repos/pdmccormick/mypy/releases{/id}","deployments_url":"https://api.github.com/repos/pdmccormick/mypy/deployments","created_at":"2016-06-02T20:21:48Z","updated_at":"2016-06-02T20:21:50Z","pushed_at":"2016-06-03T22:36:34Z","git_url":"git://github.com/pdmccormick/mypy.git","ssh_url":"git@github.com:pdmccormick/mypy.git","clone_url":"https://github.com/pdmccormick/mypy.git","svn_url":"https://github.com/pdmccormick/mypy","homepage":"http://www.mypy-lang.org/","size":13425,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python:master","ref":"master","sha":"99e9670c0ec583c5e9d4e6d24abe17b28147ca79","user":{"login":"python","id":1525981,"avatar_url":"https://avatars.githubusercontent.com/u/1525981?v=3","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,"name":"mypy","full_name":"python/mypy","owner":{"login":"python","id":1525981,"avatar_url":"https://avatars.githubusercontent.com/u/1525981?v=3","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","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":"2016-06-03T18:49:51Z","pushed_at":"2016-06-03T22:50:19Z","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":15251,"stargazers_count":1482,"watchers_count":1482,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":383,"forks":178,"open_issues":383,"watchers":1482,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python/mypy/pulls/1639"},"html":{"href":"https://github.com/python/mypy/pull/1639"},"issue":{"href":"https://api.github.com/repos/python/mypy/issues/1639"},"comments":{"href":"https://api.github.com/repos/python/mypy/issues/1639/comments"},"review_comments":{"href":"https://api.github.com/repos/python/mypy/pulls/1639/comments"},"review_comment":{"href":"https://api.github.com/repos/python/mypy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python/mypy/pulls/1639/commits"},"statuses":{"href":"https://api.github.com/repos/python/mypy/statuses/d11b4bc934a510499ec0404a3294476ce03b6d82"}}}}
{"actor":{"display_login":"ddfisher"}}