Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion httpx/_transports/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

Event = typing.Union[asyncio.Event, trio.Event]


_Message = typing.Dict[str, typing.Any]
_Receive = typing.Callable[[], typing.Awaitable[_Message]]
_Send = typing.Callable[
Expand Down
3 changes: 2 additions & 1 deletion httpx/_transports/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .._types import SyncByteStream
from .base import BaseTransport


_T = typing.TypeVar("_T")
_ExcInfo = typing.Tuple[typing.Type[BaseException], BaseException, types.TracebackType]
_OptExcInfo = typing.Union[_ExcInfo, typing.Tuple[None, None, None]]
Expand Down Expand Up @@ -123,7 +124,7 @@ def handle_request(self, request: Request) -> Response:

seen_status = None
seen_response_headers = None
seen_exc_info = None
seen_exc_info: typing.Optional["OptExcInfo"] = None

def start_response(
status: str,
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ check_untyped_defs = True
disallow_untyped_decorators = True
warn_redundant_casts = True
strict_concatenate = True
disallow_any_generics = True

[mypy-tests.*]
disallow_untyped_defs = False
Expand Down