From c9efdda0ce4f806302d432b087901657b971c245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Thu, 2 May 2024 16:37:28 +0200 Subject: [PATCH] Fix typing --- httpx_ws/_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpx_ws/_api.py b/httpx_ws/_api.py index 2970531..d6b4fa2 100644 --- a/httpx_ws/_api.py +++ b/httpx_ws/_api.py @@ -522,7 +522,8 @@ def _wait_until_closed( except RuntimeError as e: raise ShouldClose() from e done, pending = concurrent.futures.wait( # type: ignore - (todo_task, wait_close_task), return_when=concurrent.futures.FIRST_COMPLETED + (todo_task, wait_close_task), # type: ignore + return_when=concurrent.futures.FIRST_COMPLETED, ) for task in pending: task.cancel()