Skip to content

Commit bc34bbf

Browse files
committed
lint
1 parent c09921c commit bc34bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chadtree/state/executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from concurrent.futures import Future, InvalidStateError, ThreadPoolExecutor
99
from contextlib import suppress
1010
from threading import Thread
11-
from typing import Any, Awaitable, Callable, Coroutine, TypeVar
11+
from typing import Any, Awaitable, Callable, Coroutine, TypeVar, cast
1212

1313
_T = TypeVar("_T")
1414

@@ -51,5 +51,5 @@ def cont() -> None:
5151
return fut
5252

5353
def submit(self, co: Awaitable[_T]) -> Awaitable[_T]:
54-
f = run_coroutine_threadsafe(co, loop=self.loop)
54+
f: Future = run_coroutine_threadsafe(cast(Coroutine, co), loop=self.loop)
5555
return wrap_future(f)

0 commit comments

Comments
 (0)