]> git.ipfire.org Git - thirdparty/httpx.git/commit
Typing: always fill in generic type parameters (#2468)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Tue, 29 Nov 2022 16:36:03 +0000 (10:36 -0600)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 16:36:03 +0000 (16:36 +0000)
commit1b4e7fbb4825aefa0bce9565af94499bc3ae8c76
treedc74e3db8dec6ab9e5e37afa559c5316d4cad43d
parent16e2830624247c67573d076c3a0b327d483adfe8
Typing: always fill in generic type parameters (#2468)

* Typing: always fill in generic type parameters

Being explicit about the parameters helps find bugs and makes the library
easier to use for users.

- Tell mypy to disallow generics without parameter values
- Give all generic types parameters values

* fix things that aren't coming in from other commits

* lint

Co-authored-by: Martijn Pieters <mj@zopatista.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_auth.py
httpx/_main.py
httpx/_models.py
httpx/_transports/asgi.py
httpx/_transports/mock.py
httpx/_transports/wsgi.py
httpx/_urls.py
httpx/_utils.py
setup.cfg
tests/client/test_auth.py