From 484c4aea594475c85c6922628908d94e2d582054 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 4 Nov 2021 17:56:18 -0400 Subject: [PATCH] eventloop: fix FlexCallback annotation Signed-off-by: Eric Callahan --- moonraker/eventloop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/eventloop.py b/moonraker/eventloop.py index 598e30f..b3dd761 100644 --- a/moonraker/eventloop.py +++ b/moonraker/eventloop.py @@ -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