[moz] fix(api): flake8 lint 修复 — 移除未使用 import
CI / lint (pull_request) Successful in 8s
CI / test (pull_request) Successful in 28s
CI / notify-on-failure (pull_request) Successful in 1s

This commit is contained in:
cfdaily
2026-06-14 14:20:24 +08:00
parent 5db4c89fe7
commit d09fd4a173
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,5 @@
"""共享 helper 和常量"""
from pathlib import Path
from typing import Any, Dict
from fastapi import HTTPException
@@ -56,7 +55,8 @@ def _init_agent_ids():
if _KNOWN_AGENT_IDS:
return
try:
import yaml, os
import yaml
import os
cfg_path = os.path.join(os.path.dirname(__file__), "..", "..", "config", "default.yaml")
with open(cfg_path) as f:
cfg = yaml.safe_load(f)