Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Sep 15, 2024
1 parent a4d8341 commit e4bc209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/test_testing/test_sub_client/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@get("/notify/{topic:str}")
async def get_notified(topic: str) -> ServerSentEvent:
async def generator() -> AsyncIterator[bytes]:
async def generator() -> AsyncIterator[str]:
yield topic
while True:
await asyncio.sleep(0.1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def test_subprocess_async_client(async_client: httpx.AsyncClient) -> None:
break


def test_subprocess_sync_client(sync_client: httpx.AsyncClient) -> None:
def test_subprocess_sync_client(sync_client: httpx.Client) -> None:
"""Demonstrates functionality of the async client with an infinite SSE source that cannot be tested with the
regular async test client.
"""
Expand Down

0 comments on commit e4bc209

Please sign in to comment.