Skip to content

Commit

Permalink
Fix _ValueCtxManager.__await__ typehint (#6163)
Browse files Browse the repository at this point in the history
Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com>
  • Loading branch information
Zephyrkul and Zephyrkul authored Jul 19, 2023
1 parent 8ee3ac9 commit 48cfde7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redbot/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
AsyncContextManager,
Awaitable,
Dict,
Generator,
MutableMapping,
Optional,
Tuple,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 48cfde7

Please sign in to comment.