Skip to content

Commit

Permalink
fix _ValueCtxManager.__await__ typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyrkul committed May 15, 2023
1 parent edb3369 commit 1c3fb9e
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 1c3fb9e

Please sign in to comment.