完成 Ruff 全量清理
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
来源:m-shop.yaoguo.com 的 jce/ShopFacade.js、api/orderui.ts、api/mall/PlayMallNewHome.ts
|
||||
"""
|
||||
|
||||
|
||||
from .taf_protocol import TafInputStream, TafOutputStream, TafStruct, TafType
|
||||
|
||||
|
||||
@@ -68,7 +67,7 @@ def _skip_to_struct_end(ins: TafInputStream):
|
||||
"""跳过当前结构里未解析的尾部字段,停在 STRUCT_END 前。"""
|
||||
while True:
|
||||
pos = ins.buf.tell()
|
||||
tag, dtype = ins.read_head()
|
||||
_tag, dtype = ins.read_head()
|
||||
if dtype == TafType.STRUCT_END:
|
||||
ins.buf.seek(pos)
|
||||
return
|
||||
@@ -427,7 +426,7 @@ class GoodsPriceInfo(TafStruct):
|
||||
def first_sku_id(self) -> int:
|
||||
if not self.skuMap:
|
||||
return 0
|
||||
return sorted(self.skuMap.keys())[0]
|
||||
return min(self.skuMap.keys())
|
||||
|
||||
@property
|
||||
def sku_list(self) -> list[dict]:
|
||||
|
||||
Reference in New Issue
Block a user