eventloop: fix FlexCallback annotation

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-04 17:56:18 -04:00 committed by Eric Callahan
parent ac23f00d1f
commit 484c4aea59
1 changed files with 2 additions and 2 deletions

View File

@ -11,16 +11,16 @@ import functools
from concurrent.futures import ThreadPoolExecutor
from typing import (
TYPE_CHECKING,
Awaitable,
Callable,
Coroutine,
List,
Optional,
TypeVar
)
if TYPE_CHECKING:
_T = TypeVar("_T")
FlexCallback = Callable[..., Optional[Coroutine]]
FlexCallback = Callable[..., Optional[Awaitable]]
class EventLoop:
TimeoutError = asyncio.TimeoutError