fix: B站get_wbi_keys函数类型标注问题

This commit is contained in:
Relakkes 2023-12-05 23:32:35 +08:00
parent a6e877de42
commit f71d086464
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
# @Desc : bilibili 请求客户端
import asyncio
import json
from typing import Any, Callable, Dict, Optional, List
from typing import Any, Callable, Dict, Optional, List, Tuple
from urllib.parse import urlencode
import httpx
@ -59,7 +59,7 @@ class BilibiliClient:
img_key, sub_key = await self.get_wbi_keys()
return BilibiliSign(img_key, sub_key).sign(req_data)
async def get_wbi_keys(self) -> tuple[str, str]:
async def get_wbi_keys(self) -> Tuple[str, str]:
"""
获取最新的 img_key sub_key
:return: