]> git.ipfire.org Git - thirdparty/httpx.git/commit
Allow tuple as input of query parameters. (#1426)
authorSarunasAzna <SarunasAzna@users.noreply.github.com>
Sat, 12 Dec 2020 17:38:37 +0000 (18:38 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Dec 2020 17:38:37 +0000 (18:38 +0100)
commit86964054d60da7796c65e501ba021440b14cc36c
tree343b22e6ea9e864d342aaa425c00f656b49950a3
parent584a40513f820718b4356097fdf7452e154e6e99
Allow tuple as input of query parameters. (#1426)

* Allow tuple as input of query parameters.

In the documentation it is stated that params can be dict, string or two
tuples. This allows to used two tuples. Previously it was possible to
use only tuple inside a list.

* tests for two tuples

* use isinstance to check the type of query params

* change list|tuple to in Sequence

* update documentation

* fix typing
httpx/_api.py
httpx/_client.py
httpx/_models.py
httpx/_types.py
tests/models/test_queryparams.py