diff --git a/redbot/core/config.py b/redbot/core/config.py index 0e4cf1110ca..1126ce08ba4 100644 --- a/redbot/core/config.py +++ b/redbot/core/config.py @@ -9,6 +9,7 @@ AsyncContextManager, Awaitable, Dict, + Generator, MutableMapping, Optional, Tuple, @@ -96,7 +97,7 @@ def __init__(self, value_obj: "Value", coro: Awaitable[Any], *, acquire_lock: bo self.__acquire_lock = acquire_lock self.__lock = self.value_obj.get_lock() - def __await__(self) -> _T: + def __await__(self) -> Generator[Any, None, _T]: return self.coro.__await__() async def __aenter__(self) -> _T: