Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Feb 26, 2024
1 parent 5c451bc commit 14b62d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ async def asgi(receive: Receive, send: Send) -> None:
assert websocket.should_close.is_set()


def test_client(test_client_factory):
async def app(scope, receive, send):
def test_client(test_client_factory: TestClientFactory) -> None:
async def app(scope: Scope, receive: Receive, send: Send) -> None:
client = scope.get("client")
assert client is not None
host, port = client
Expand Down

0 comments on commit 14b62d3

Please sign in to comment.