Skip to content

Commit

Permalink
⬆️ 🐛 升级最低Python版本为3.8,修复 typing 导致的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Well2333 committed Jul 30, 2023
1 parent d53de9c commit c9af797
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 183 deletions.
4 changes: 3 additions & 1 deletion bilireq/grpc/dynamic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
)
from ..protos.bilibili.app.dynamic.v2.dynamic_pb2_grpc import DynamicStub
from ..utils import grpc_request
from typing import List



@grpc_request
Expand All @@ -39,7 +41,7 @@ async def grpc_get_followed_dynamic_users(**kwargs) -> DynMixUpListViewMoreReply


@grpc_request
async def grpc_get_dynamic_details(dynamic_ids: list[int], **kwargs) -> DynDetailsReply:
async def grpc_get_dynamic_details(dynamic_ids: List[int], **kwargs) -> DynDetailsReply:
stub = DynamicStub(kwargs.pop("_channel"))
req = DynDetailsReq(dynamic_ids=json.dumps({"dyn_ids": dynamic_ids}))
return await stub.DynDetails(req, **kwargs)
Expand Down
Loading

0 comments on commit c9af797

Please sign in to comment.