mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 03:55:28 +00:00
📝 Update typo
This commit is contained in:
parent
4ebe5e006c
commit
7646105c20
@ -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")
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user