mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix _ValueCtxManager.__await__ typehint (#6163)
Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com>
This commit is contained in:
parent
8ee3ac9352
commit
48cfde7b8c
@ -9,6 +9,7 @@ from typing import (
|
||||
AsyncContextManager,
|
||||
Awaitable,
|
||||
Dict,
|
||||
Generator,
|
||||
MutableMapping,
|
||||
Optional,
|
||||
Tuple,
|
||||
@ -96,7 +97,7 @@ class _ValueCtxManager(Awaitable[_T], AsyncContextManager[_T]): # pylint: disab
|
||||
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user