From 1f26713e6d8995fcf370b35fb22f48865017d9a1 Mon Sep 17 00:00:00 2001 From: TheLeadingLlama <44980366+StockerMC@users.noreply.github.com> Date: Thu, 19 Aug 2021 18:45:22 -0400 Subject: [PATCH] Add return type for DiscordWebSocket.wait_for --- discord/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/gateway.py b/discord/gateway.py index f77037b9..41e6bc8e 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -384,7 +384,7 @@ class DiscordWebSocket: await ws.resume() return ws - def wait_for(self, event: str, predicate: Callable[[Dict[str, Any]], bool], result: Optional[Callable[[Dict[str, Any]], Any]] = None): + def wait_for(self, event: str, predicate: Callable[[Dict[str, Any]], bool], result: Optional[Callable[[Dict[str, Any]], Any]] = None) -> asyncio.Future: """Waits for a DISPATCH'd event that meets the predicate. Parameters