{"action":"created","issue":{"url":"https://api.github.com/repos/python/mypy/issues/1722","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/1722/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/1722/comments","events_url":"https://api.github.com/repos/python/mypy/issues/1722/events","html_url":"https://github.com/python/mypy/issues/1722","id":161025632,"number":1722,"title":"Crash on invalid syntax resembling *-args","user":{"login":"miedzinski","id":12597084,"avatar_url":"https://avatars.githubusercontent.com/u/12597084?v=3","gravatar_id":"","url":"https://api.github.com/users/miedzinski","html_url":"https://github.com/miedzinski","followers_url":"https://api.github.com/users/miedzinski/followers","following_url":"https://api.github.com/users/miedzinski/following{/other_user}","gists_url":"https://api.github.com/users/miedzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/miedzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miedzinski/subscriptions","organizations_url":"https://api.github.com/users/miedzinski/orgs","repos_url":"https://api.github.com/users/miedzinski/repos","events_url":"https://api.github.com/users/miedzinski/events{/privacy}","received_events_url":"https://api.github.com/users/miedzinski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python/mypy/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/python/mypy/labels/Crash","name":"Crash","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/python/mypy/milestones/5","html_url":"https://github.com/python/mypy/milestones/0.4.x","labels_url":"https://api.github.com/repos/python/mypy/milestones/5/labels","id":1616634,"number":5,"title":"0.4.x","description":"The next release, and the next, within 0.4.x.\r\n","creator":{"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},"open_issues":30,"closed_issues":28,"state":"open","created_at":"2016-03-01T23:19:26Z","updated_at":"2016-07-08T17:38:13Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-18T13:53:12Z","updated_at":"2016-07-08T19:09:14Z","closed_at":null,"body":"```\r\n[1, *[2, 3]]\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/dominik/.virtualenvs/mypy/bin/mypy\", line 6, in <module>\r\n    main(__file__)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/main.py\", line 54, in main\r\n    res = type_check_only(sources, bin_dir, options)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/main.py\", line 102, in type_check_only\r\n    python_path=options.python_path)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/build.py\", line 211, in build\r\n    dispatch(sources, manager)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/build.py\", line 1336, in dispatch\r\n    process_graph(graph, manager)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/build.py\", line 1467, in process_graph\r\n    process_stale_scc(graph, scc)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/build.py\", line 1497, in process_stale_scc\r\n    graph[id].type_check()\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/build.py\", line 1316, in type_check\r\n    manager.type_checker.visit_file(self.tree, self.xpath)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checker.py\", line 426, in visit_file\r\n    self.accept(d)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checker.py\", line 476, in accept\r\n    typ = node.accept(self)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/nodes.py\", line 729, in accept\r\n    return visitor.visit_expression_stmt(self)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checker.py\", line 1582, in visit_expression_stmt\r\n    self.accept(s.expr)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checker.py\", line 476, in accept\r\n    typ = node.accept(self)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/nodes.py\", line 1434, in accept\r\n    return visitor.visit_list_expr(self)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checker.py\", line 2122, in visit_list_expr\r\n    return self.expr_checker.visit_list_expr(e)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checkexpr.py\", line 1251, in visit_list_expr\r\n    e)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checkexpr.py\", line 1270, in check_list_or_set_expr\r\n    [nodes.ARG_POS] * len(items), context)[0]\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checkexpr.py\", line 242, in check_call\r\n    messages=arg_messages)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checkexpr.py\", line 661, in check_argument_types\r\n    actual + 1, i + 1, callee, context, messages)\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/checkexpr.py\", line 686, in check_arg\r\n    elif not is_subtype(caller_type, callee_type):\r\n  File \"/home/dominik/.virtualenvs/mypy/lib/python3.5/site-packages/mypy/subtypes.py\", line 49, in is_subtype\r\n    return left.accept(SubtypeVisitor(right, type_parameter_checker))\r\nAttributeError: 'NoneType' object has no attribute 'accept'\r\n```\r\n\r\n```\r\n$ python --version\r\nPython 3.5.0+\r\n$ mypy --version\r\nmypy 0.4.2\r\n```"},"comment":{"url":"https://api.github.com/repos/python/mypy/issues/comments/231447068","html_url":"https://github.com/python/mypy/issues/1722#issuecomment-231447068","issue_url":"https://api.github.com/repos/python/mypy/issues/1722","id":231447068,"user":{"login":"JukkaL","id":1107911,"avatar_url":"https://avatars.githubusercontent.com/u/1107911?v=3","gravatar_id":"","url":"https://api.github.com/users/JukkaL","html_url":"https://github.com/JukkaL","followers_url":"https://api.github.com/users/JukkaL/followers","following_url":"https://api.github.com/users/JukkaL/following{/other_user}","gists_url":"https://api.github.com/users/JukkaL/gists{/gist_id}","starred_url":"https://api.github.com/users/JukkaL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JukkaL/subscriptions","organizations_url":"https://api.github.com/users/JukkaL/orgs","repos_url":"https://api.github.com/users/JukkaL/repos","events_url":"https://api.github.com/users/JukkaL/events{/privacy}","received_events_url":"https://api.github.com/users/JukkaL/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T19:09:14Z","updated_at":"2016-07-08T19:09:14Z","body":"The syntax is actually valid in Python 3.5:\r\n\r\n```\r\n>>> [1, *[2, 3]]\r\n[1, 2, 3]\r\n```"}}
{"actor":{"display_login":"JukkaL"}}