mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-15 20:27:29 +08:00
diva: fix typing
This commit is contained in:
@@ -9,7 +9,7 @@ from urllib import parse
|
||||
from ..const import DivaConstants
|
||||
|
||||
class GetPvPdRequest(BaseRequest):
|
||||
def __init__(self, raw: str | bytes) -> None:
|
||||
def __init__(self, raw: Union[str, bytes]) -> None:
|
||||
super().__init__(raw)
|
||||
try:
|
||||
self.pd_id = int(self.pd_id)
|
||||
@@ -29,7 +29,7 @@ class GetPvPdResponse(BaseResponse):
|
||||
self.pdddt_tm = parse.quote(datetime.now().strftime(DivaConstants.LUT_TIME_FMT))
|
||||
|
||||
class StageResultRequest(BaseRequest):
|
||||
def __init__(self, raw: str | bytes) -> None:
|
||||
def __init__(self, raw: Union[str, bytes]) -> None:
|
||||
super().__init__(raw)
|
||||
try:
|
||||
self.pd_id = int(self.pd_id)
|
||||
|
||||
Reference in New Issue
Block a user