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