]> git.ipfire.org Git - thirdparty/httpx.git/commit
Typing: use wsgiref.types to validate types and fix issues uncovered (#2467)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Tue, 29 Nov 2022 17:55:21 +0000 (11:55 -0600)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 17:55:21 +0000 (17:55 +0000)
commit1ff67ea47cd436fd2a835d00bcc830310ff9a0cd
treebd1f6492cf6690186e08220ce0e541f13ba814f4
parent8327e1345476ca38bd058545585d14890823aeb8
Typing: use wsgiref.types to validate types and fix issues uncovered (#2467)

* Typing: use wsgiref.types to validate types and fix issues uncovered

- start_response() must return a write(bytes) function, even though this
  is now deprecated. It's fine to be a no-op here.
- sys.exc_info() can return (None, None, None), so make sure to handle that case.

* remove typing_extensions

Co-authored-by: Martijn Pieters <mj@zopatista.com>
httpx/_transports/wsgi.py