Skip to content

Commit f71d086

Browse files
committed
fix: B站get_wbi_keys函数类型标注问题
1 parent a6e877d commit f71d086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

media_platform/bilibili/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# @Desc : bilibili 请求客户端
55
import asyncio
66
import json
7-
from typing import Any, Callable, Dict, Optional, List
7+
from typing import Any, Callable, Dict, Optional, List, Tuple
88
from urllib.parse import urlencode
99

1010
import httpx
@@ -59,7 +59,7 @@ async def pre_request_data(self, req_data: Dict) -> Dict:
5959
img_key, sub_key = await self.get_wbi_keys()
6060
return BilibiliSign(img_key, sub_key).sign(req_data)
6161

62-
async def get_wbi_keys(self) -> tuple[str, str]:
62+
async def get_wbi_keys(self) -> Tuple[str, str]:
6363
"""
6464
获取最新的 img_key 和 sub_key
6565
:return:

0 commit comments

Comments
 (0)