📝 Update typo

This commit is contained in:
xtaodada 2023-08-05 19:02:09 +08:00
parent 4ebe5e006c
commit 7646105c20
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import asyncio 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.components.chronicle.base import BaseChronicleClient
from simnet.client.routes import RECORD_URL from simnet.client.routes import RECORD_URL
@ -266,17 +266,16 @@ class GenshinBattleChronicleClient(BaseChronicleClient):
async def get_genshin_notes_by_stoken( async def get_genshin_notes_by_stoken(
self, self,
lang: Optional[str] = None, lang: Optional[str] = None,
) -> NotesWidget: ) -> Union[NotesWidget, NotesOverseaWidget]:
"""Get Genshin's real-time notes. """Get Genshin's real-time notes.
Args: Args:
lang (Optional[str], optional): The language of the data. Defaults to None. lang (Optional[str], optional): The language of the data. Defaults to None.
Returns: Returns:
NotesWidget: The requested real-time notes. NotesWidget (Union[NotesWidget, NotesOverseaWidget]): The requested real-time notes.
Raises: Raises:
RegionNotSupported: If the region is not supported.
BadRequest: If the request is invalid. BadRequest: If the request is invalid.
""" """
stoken = self.cookies.get("stoken") stoken = self.cookies.get("stoken")

View File

@ -301,10 +301,9 @@ class StarRailBattleChronicleClient(BaseChronicleClient):
lang (Optional[str], optional): The language of the data. Defaults to None. lang (Optional[str], optional): The language of the data. Defaults to None.
Returns: Returns:
StarRailNoteWidget: The requested real-time notes. StarRailNoteWidget (Union[StarRailNoteWidget, StarRailNoteOverseaWidget]): The requested real-time notes.
Raises: Raises:
RegionNotSupported: If the region is not supported.
BadRequest: If the request is invalid. BadRequest: If the request is invalid.
""" """
stoken = self.cookies.get("stoken") stoken = self.cookies.get("stoken")