Typehint gateway.py #44

Merged
paris-ci merged 8 commits from pr7422 into 2.0 2021-09-02 20:50:19 +00:00
Showing only changes of commit 1f26713e6d - Show all commits

View File

@@ -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