Revert "[moz] fix(api): flake8 lint 修复 — 移除未使用 import"
This reverts commit c08b891c42.
This commit is contained in:
+2
-2
@@ -1,5 +1,6 @@
|
|||||||
"""共享 helper 和常量"""
|
"""共享 helper 和常量"""
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
from fastapi import HTTPException
|
from fastapi import HTTPException
|
||||||
|
|
||||||
@@ -55,8 +56,7 @@ def _init_agent_ids():
|
|||||||
if _KNOWN_AGENT_IDS:
|
if _KNOWN_AGENT_IDS:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
import yaml
|
import yaml, os
|
||||||
import os
|
|
||||||
cfg_path = os.path.join(os.path.dirname(__file__), "..", "..", "config", "default.yaml")
|
cfg_path = os.path.join(os.path.dirname(__file__), "..", "..", "config", "default.yaml")
|
||||||
with open(cfg_path) as f:
|
with open(cfg_path) as f:
|
||||||
cfg = yaml.safe_load(f)
|
cfg = yaml.safe_load(f)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ from src.api.shared import (
|
|||||||
_bb,
|
_bb,
|
||||||
_q,
|
_q,
|
||||||
_task_to_dict,
|
_task_to_dict,
|
||||||
|
_validate_project,
|
||||||
_extract_mentions,
|
_extract_mentions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user