Type-hint gateway

This commit is contained in:
Josh
2022-02-22 16:44:52 +10:00
committed by Rapptz
parent f5e087c5c3
commit c8064ba6f2
3 changed files with 190 additions and 117 deletions

View File

@@ -341,7 +341,7 @@ class HTTPClient:
connector=self.connector, ws_response_class=DiscordClientWebSocketResponse
)
async def ws_connect(self, url: str, *, compress: int = 0) -> Any:
async def ws_connect(self, url: str, *, compress: int = 0) -> aiohttp.ClientWebSocketResponse:
kwargs = {
'proxy_auth': self.proxy_auth,
'proxy': self.proxy,