style: 统一 Ruff 代码格式
This commit is contained in:
@@ -245,7 +245,9 @@ class ScoreExchangePrizeResp(TafStruct):
|
||||
self.msg = ins.read_string(1, default=self.msg)
|
||||
self.orderId = ins.read_string(3, default=self.orderId)
|
||||
self.exchangeInfo = ins.read_struct(4, ExchangeInfo) or self.exchangeInfo
|
||||
self.actPreCondition = ins.read_struct(5, ExchangeActPreCondition) or self.actPreCondition
|
||||
self.actPreCondition = (
|
||||
ins.read_struct(5, ExchangeActPreCondition) or self.actPreCondition
|
||||
)
|
||||
|
||||
def write_to(self, os: TafOutputStream):
|
||||
os.write_int32(0, self.status)
|
||||
@@ -512,7 +514,9 @@ class ActTaskDetailItem(TafStruct):
|
||||
|
||||
@property
|
||||
def spu_id(self) -> str:
|
||||
return self._extract_spu_id(self.taskUrl) or self._extract_spu_id(self.taskParams)
|
||||
return self._extract_spu_id(self.taskUrl) or self._extract_spu_id(
|
||||
self.taskParams
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user