refactor: 移除未使用的导入和优化代码风格
本次提交主要包含以下代码重构和风格优化: - 从多个文件中移除了未被使用的导入,例如 `Dict`, `Any`, `List`, `os`, `threading` 等,以保持代码的整洁性。 - 统一了测试脚本中的输出格式,移除了不必要的 f-string,使代码更加简洁。 - 清理了部分冗余的类型提示,提升了代码的可读性。
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
import asyncio
|
||||
import time
|
||||
from typing import Optional, List, Dict, Any
|
||||
from typing import Optional, Dict, Any
|
||||
from src.common.logger import get_logger
|
||||
from src.config.config import global_config
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ import asyncio
|
||||
import time
|
||||
from typing import Dict, List, Optional, Any, Callable
|
||||
from dataclasses import dataclass
|
||||
from queue import Queue
|
||||
import threading
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from src.common.logger import get_logger
|
||||
from src.config.config import global_config
|
||||
|
||||
Reference in New Issue
Block a user