{"action":"created","issue":{"url":"https://api.github.com/repos/python/mypy/issues/1028","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/1028/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/1028/comments","events_url":"https://api.github.com/repos/python/mypy/issues/1028/events","html_url":"https://github.com/python/mypy/issues/1028","id":119644274,"number":1028,"title":"f(*args, foo=bar) always leads to an error","user":{"login":"gvanrossum","id":2894642,"avatar_url":"https://avatars.githubusercontent.com/u/2894642?v=3","gravatar_id":"","url":"https://api.github.com/users/gvanrossum","html_url":"https://github.com/gvanrossum","followers_url":"https://api.github.com/users/gvanrossum/followers","following_url":"https://api.github.com/users/gvanrossum/following{/other_user}","gists_url":"https://api.github.com/users/gvanrossum/gists{/gist_id}","starred_url":"https://api.github.com/users/gvanrossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvanrossum/subscriptions","organizations_url":"https://api.github.com/users/gvanrossum/orgs","repos_url":"https://api.github.com/users/gvanrossum/repos","events_url":"https://api.github.com/users/gvanrossum/events{/privacy}","received_events_url":"https://api.github.com/users/gvanrossum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python/mypy/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-12-01T05:17:15Z","updated_at":"2016-09-05T03:09:58Z","closed_at":null,"body":"I found some code that calls `foo(*args, bar=baz)`, where f has a bunch of arguments including foo and args is itself a varargs argument. The code (apparently) carefully ensures that args is shorter than the number of arguments before foo; but I always get an error from mypy. Code:\r\n```\r\ndef bar(x, y=0, z=1, blah=2):\r\n    # type: (int, int, int, int) -> None\r\n    print(x, y, z, blah)\r\ndef foo(*args):\r\n    # type: (*int) -> None\r\n    bar(*args, blah=1)\r\n```\r\nError:\r\n```\r\nx.py:6: error: \"bar\" gets multiple values for keyword argument \"blah\"\r\n```"},"comment":{"url":"https://api.github.com/repos/python/mypy/issues/comments/244650023","html_url":"https://github.com/python/mypy/issues/1028#issuecomment-244650023","issue_url":"https://api.github.com/repos/python/mypy/issues/1028","id":244650023,"user":{"login":"elazarg","id":5108069,"avatar_url":"https://avatars.githubusercontent.com/u/5108069?v=3","gravatar_id":"","url":"https://api.github.com/users/elazarg","html_url":"https://github.com/elazarg","followers_url":"https://api.github.com/users/elazarg/followers","following_url":"https://api.github.com/users/elazarg/following{/other_user}","gists_url":"https://api.github.com/users/elazarg/gists{/gist_id}","starred_url":"https://api.github.com/users/elazarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elazarg/subscriptions","organizations_url":"https://api.github.com/users/elazarg/orgs","repos_url":"https://api.github.com/users/elazarg/repos","events_url":"https://api.github.com/users/elazarg/events{/privacy}","received_events_url":"https://api.github.com/users/elazarg/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T03:09:58Z","updated_at":"2016-09-05T03:09:58Z","body":"#142? "}}
{"actor":{"display_login":"elazarg"}}