From 7646105c204bcc3509d2842b7fb619cba560da84 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 5 Aug 2023 19:02:09 +0800 Subject: [PATCH] :memo: Update typo --- simnet/client/components/chronicle/genshin.py | 7 +++---- simnet/client/components/chronicle/starrail.py | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/simnet/client/components/chronicle/genshin.py b/simnet/client/components/chronicle/genshin.py index 8f943df..707d66b 100644 --- a/simnet/client/components/chronicle/genshin.py +++ b/simnet/client/components/chronicle/genshin.py @@ -1,5 +1,5 @@ import asyncio -from typing import Optional, Any, List, Dict +from typing import Optional, Any, List, Dict, Union from simnet.client.components.chronicle.base import BaseChronicleClient from simnet.client.routes import RECORD_URL @@ -266,17 +266,16 @@ class GenshinBattleChronicleClient(BaseChronicleClient): async def get_genshin_notes_by_stoken( self, lang: Optional[str] = None, - ) -> NotesWidget: + ) -> Union[NotesWidget, NotesOverseaWidget]: """Get Genshin's real-time notes. Args: lang (Optional[str], optional): The language of the data. Defaults to None. Returns: - NotesWidget: The requested real-time notes. + NotesWidget (Union[NotesWidget, NotesOverseaWidget]): The requested real-time notes. Raises: - RegionNotSupported: If the region is not supported. BadRequest: If the request is invalid. """ stoken = self.cookies.get("stoken") diff --git a/simnet/client/components/chronicle/starrail.py b/simnet/client/components/chronicle/starrail.py index 1f262b1..ac31d42 100644 --- a/simnet/client/components/chronicle/starrail.py +++ b/simnet/client/components/chronicle/starrail.py @@ -301,10 +301,9 @@ class StarRailBattleChronicleClient(BaseChronicleClient): lang (Optional[str], optional): The language of the data. Defaults to None. Returns: - StarRailNoteWidget: The requested real-time notes. + StarRailNoteWidget (Union[StarRailNoteWidget, StarRailNoteOverseaWidget]): The requested real-time notes. Raises: - RegionNotSupported: If the region is not supported. BadRequest: If the request is invalid. """ stoken = self.cookies.get("stoken")