fix(ai): capabilities 嵌套 if 合并(SIM102)——修 8f1d1bc 的 lint 红
CI / ai-gates (push) Successful in 1m16s
CI / ai-gates (push) Successful in 1m16s
上一条提交时我先 commit 后看门禁输出,lint 已红却已入库。四道门禁现逐条复验
全绿(secret-scan / format / lint / pytest 退出码均 0,123 测试)。
教训与 db87d66 同源:门禁必须在 commit **之前**逐条读对退出码。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -102,13 +102,16 @@ def validate(
|
|||||||
f"可选:{sorted(limits.resolutions)}"
|
f"可选:{sorted(limits.resolutions)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if duration_sec is not None and duration_sec != AUTO_DURATION:
|
if (
|
||||||
if not limits.min_duration_sec <= duration_sec <= limits.max_duration_sec:
|
duration_sec is not None
|
||||||
raise ValueError(
|
and duration_sec != AUTO_DURATION
|
||||||
f"模型 {model} 的时长需在 "
|
and not limits.min_duration_sec <= duration_sec <= limits.max_duration_sec
|
||||||
f"[{limits.min_duration_sec}, {limits.max_duration_sec}] 秒内"
|
):
|
||||||
f"(或 {AUTO_DURATION} 表示由模型自选),当前 {duration_sec}"
|
raise ValueError(
|
||||||
)
|
f"模型 {model} 的时长需在 "
|
||||||
|
f"[{limits.min_duration_sec}, {limits.max_duration_sec}] 秒内"
|
||||||
|
f"(或 {AUTO_DURATION} 表示由模型自选),当前 {duration_sec}"
|
||||||
|
)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
has_first_frame
|
has_first_frame
|
||||||
|
|||||||
Reference in New Issue
Block a user