类型标注

This commit is contained in:
LIghtJUNction
2026-02-06 12:37:41 +08:00
parent 1859206007
commit 437c186a66
@@ -376,7 +376,7 @@ class WecomPlatformAdapter(Platform):
abm.message = [Image(file=path, url=path)]
elif msgtype == "voice":
media_id = msg.get("voice", {}).get("media_id", "")
resp: Response = await asyncio.get_event_loop().run_in_executor(
resp = await asyncio.get_event_loop().run_in_executor(
None,
self.client.media.download,
media_id,