Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut authored and cofin committed Nov 16, 2024
1 parent 34bbe6c commit 7a0659b
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 7a0659b

Please sign in to comment.