forked from Hay1tsme/artemis
diva: fix typing
This commit is contained in:
parent
572b8ddbe5
commit
81c13f5008
@ -163,7 +163,7 @@ class AttendResponse(BaseResponse):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
class SpendCreditRequest(BaseRequest):
|
class SpendCreditRequest(BaseRequest):
|
||||||
def __init__(self, raw: str | bytes) -> None:
|
def __init__(self, raw: Union[str, bytes]) -> None:
|
||||||
super().__init__(raw)
|
super().__init__(raw)
|
||||||
try:
|
try:
|
||||||
self.pd_id = int(self.pd_id)
|
self.pd_id = int(self.pd_id)
|
||||||
|
@ -9,7 +9,7 @@ from urllib import parse
|
|||||||
from ..const import DivaConstants
|
from ..const import DivaConstants
|
||||||
|
|
||||||
class GetPvPdRequest(BaseRequest):
|
class GetPvPdRequest(BaseRequest):
|
||||||
def __init__(self, raw: str | bytes) -> None:
|
def __init__(self, raw: Union[str, bytes]) -> None:
|
||||||
super().__init__(raw)
|
super().__init__(raw)
|
||||||
try:
|
try:
|
||||||
self.pd_id = int(self.pd_id)
|
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))
|
self.pdddt_tm = parse.quote(datetime.now().strftime(DivaConstants.LUT_TIME_FMT))
|
||||||
|
|
||||||
class StageResultRequest(BaseRequest):
|
class StageResultRequest(BaseRequest):
|
||||||
def __init__(self, raw: str | bytes) -> None:
|
def __init__(self, raw: Union[str, bytes]) -> None:
|
||||||
super().__init__(raw)
|
super().__init__(raw)
|
||||||
try:
|
try:
|
||||||
self.pd_id = int(self.pd_id)
|
self.pd_id = int(self.pd_id)
|
||||||
|
@ -140,7 +140,7 @@ class RegisterResponse(BaseResponse):
|
|||||||
self.pd_id: int = pv_id
|
self.pd_id: int = pv_id
|
||||||
|
|
||||||
class EndRequest(BaseRequest):
|
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_id: str
|
||||||
self.my_qst_sts: str
|
self.my_qst_sts: str
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user