diva: fix typing

This commit is contained in:
Hay1tsme 2023-11-08 21:23:54 -05:00
parent 572b8ddbe5
commit 81c13f5008
3 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ class AttendResponse(BaseResponse):
return ret
class SpendCreditRequest(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)

View File

@ -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)

View File

@ -140,7 +140,7 @@ class RegisterResponse(BaseResponse):
self.pd_id: int = pv_id
class EndRequest(BaseRequest):
def __init__(self, raw: str | bytes) -> None:
def __init__(self, raw: Union[str, bytes]) -> None:
self.my_qst_id: str
self.my_qst_sts: str