From c939df2bd0c810f828f89ebdcb8458ae07324677 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 24 Jul 2026 10:05:39 +0200 Subject: [PATCH] lib.AsyncRunner: Fix mypy.ignore-without-code fallout Annotate the one existing bare "# type: ignore" in AsyncRunner.py with arg-type and var-annotated codes to prepare for mypy.ignore-without-code. Signed-off-by: Jan Lindemann Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev 0.81.1 --- src/python/jw/pkg/lib/AsyncRunner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/jw/pkg/lib/AsyncRunner.py b/src/python/jw/pkg/lib/AsyncRunner.py index 2384ea07..d1569be4 100644 --- a/src/python/jw/pkg/lib/AsyncRunner.py +++ b/src/python/jw/pkg/lib/AsyncRunner.py @@ -44,7 +44,10 @@ class AsyncRunner: self._loop = self._cm.__enter__() def call(self, awaitable: Awaitable[T], timeout: float | None = None) -> T: - fut = asyncio.run_coroutine_threadsafe(awaitable, self._loop) # type: ignore + fut = asyncio.run_coroutine_threadsafe( + awaitable, # type: ignore[arg-type, var-annotated] + self._loop, + ) return fut.result(timeout) def close(self) -> None: