diff --git a/tests/test_stream_cancellation.py b/tests/test_stream_cancellation.py index eb823b9e8c..20069c5f6b 100644 --- a/tests/test_stream_cancellation.py +++ b/tests/test_stream_cancellation.py @@ -48,7 +48,7 @@ async def _run_asgi_and_cancel(app: FastAPI, path: str, timeout: float) -> bool: async def receive(): # type: ignore[no-untyped-def] # Simulate a client that never disconnects, rely on cancellation await anyio.sleep(float("inf")) - return {"type": "http.disconnect"} + return {"type": "http.disconnect"} # pragma: no cover async def send(message: dict) -> None: # type: ignore[type-arg] if message["type"] == "http.response.body":