执行 Ruff 安全自动修复
This commit is contained in:
@@ -19,7 +19,6 @@ import copy
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from .algorithm import UNDEF, JSObject, Window
|
||||
from .pagedoo_vm import PagedooVM
|
||||
@@ -78,7 +77,7 @@ class MallSession:
|
||||
raise ValueError(f"624B 中间态长度 != 624: {len(mid[0])}")
|
||||
|
||||
@classmethod
|
||||
def from_capture_file(cls, frames_jsonl: str | Path) -> "MallSession":
|
||||
def from_capture_file(cls, frames_jsonl: str | Path) -> MallSession:
|
||||
"""从捕获的 frames.jsonl 提取同会话 transform_input + xMidasOps。
|
||||
|
||||
frames.jsonl 由 scripts/capture-mall-session.mjs 实时落盘:
|
||||
@@ -127,7 +126,7 @@ class MallSession:
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, d: dict) -> "MallSession":
|
||||
def from_json(cls, d: dict) -> MallSession:
|
||||
return cls(d["transform_input"], d["xmidas_ops"])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user