{"action":"created","issue":{"url":"https://api.github.com/repos/aio-libs/yarl/issues/24","repository_url":"https://api.github.com/repos/aio-libs/yarl","labels_url":"https://api.github.com/repos/aio-libs/yarl/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/yarl/issues/24/comments","events_url":"https://api.github.com/repos/aio-libs/yarl/issues/24/events","html_url":"https://github.com/aio-libs/yarl/issues/24","id":189172463,"number":24,"title":"TypeError in URL.with_query","user":{"login":"dyus","id":5001608,"avatar_url":"https://avatars.githubusercontent.com/u/5001608?v=3","gravatar_id":"","url":"https://api.github.com/users/dyus","html_url":"https://github.com/dyus","followers_url":"https://api.github.com/users/dyus/followers","following_url":"https://api.github.com/users/dyus/following{/other_user}","gists_url":"https://api.github.com/users/dyus/gists{/gist_id}","starred_url":"https://api.github.com/users/dyus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyus/subscriptions","organizations_url":"https://api.github.com/users/dyus/orgs","repos_url":"https://api.github.com/users/dyus/repos","events_url":"https://api.github.com/users/dyus/events{/privacy}","received_events_url":"https://api.github.com/users/dyus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-14T17:22:49Z","updated_at":"2016-12-02T15:34:22Z","closed_at":"2016-12-02T15:34:22Z","body":"Hello, I have a problem with generating query_params. I try to make query\r\n```python\r\nsession = aiohttp.ClientSession()\r\nsession.request('get', 'some_url', {'p1': 1, 'p1': 2, 'p2': 3})\r\n```\r\nand got TypeError\r\n```python\r\n  File \"/lib/python3.5/site-packages/aiohttp/client.py\", line 553, in __await__\r\n    resp = yield from self._coro\r\n  File \"/lib/python3.5/site-packages/aiohttp/client.py\", line 198, in _request\r\n    proxy=proxy, proxy_auth=proxy_auth, timeout=timeout)\r\n  File \"lib/python3.5/site-packages/aiohttp/client_reqrep.py\", line 79, in __init__\r\n    url2 = url.with_query(params)\r\n  File \"/lib/python3.5/site-packages/yarl/__init__.py\", line 675, in with_query\r\n    raise TypeError(\"Invalid variable type\")\r\nTypeError: Invalid variable type\r\n```\r\nAfter some research I understand that Mapping with key: Sequence works with `MultiDict`. But this is not obvious. Maybe it should cast  `dict` into `MultiDict` or return more descriptive warning or add logic for parsing Sequences in Mapping section"},"comment":{"url":"https://api.github.com/repos/aio-libs/yarl/issues/comments/264481863","html_url":"https://github.com/aio-libs/yarl/issues/24#issuecomment-264481863","issue_url":"https://api.github.com/repos/aio-libs/yarl/issues/24","id":264481863,"user":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T15:34:22Z","updated_at":"2016-12-02T15:34:22Z","body":"I don't want to support list values but added more verbose error messages: 4b9a94a"}}
{"actor":{"display_login":"asvetlov"}}