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:
parent
df5785cefd
commit
c939df2bd0
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue