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 <jan@janware.com>
Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev 0.81.1
This commit is contained in:
Jan Lindemann 2026-07-24 10:05:39 +02:00
commit c939df2bd0
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -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: