refactor(gui): 清理 4 个未使用的 stdlib import (634 → 630)
This commit is contained in:
1 parent
e0cad29daf
commit
e0c68883dd
1 file changed
+5
-9
+5
-9
@@ -1,13 +1,9 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import queue
|
||||
import re
|
||||
import sys
|
||||
import threading
|
||||
import warnings
|
||||
from datetime import datetime
|
||||
from typing import Any, Callable
|
||||
|
||||
# 确保项目根目录在 Python 路径中(支持直接运行 gui/gui_app.py)
|
||||
_script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
@@ -15,7 +11,7 @@ _project_root = os.path.dirname(_script_dir)
|
||||
if _project_root not in sys.path:
|
||||
sys.path.insert(0, _project_root)
|
||||
|
||||
from PIL import Image, ImageTk # type: ignore[import]
|
||||
from PIL import ImageTk # type: ignore[import]
|
||||
|
||||
# 抽离:ADB/配置/参数结构体到 gui_core.py(便于后续模块化)
|
||||
from gui.gui_core import (
|
||||
@@ -42,10 +38,10 @@ from gui.gui_core_pkg import (
|
||||
pick_best_match,
|
||||
set_last_wifi_target,
|
||||
)
|
||||
from gui.gui_core_pkg.wifi_adb_scan import verify_adb_target, query_device_model
|
||||
from gui.gui_core_pkg.wifi_adb_scan import verify_adb_target, query_device_model # noqa: F401 re-export
|
||||
from douyin.core.path_config import get_logs_dir
|
||||
from gui.components.mapping_table import create_mapping_tab
|
||||
from gui.components.wifi_adb_scan_dialog import open_scan_dialog
|
||||
from gui.components.wifi_adb_scan_dialog import open_scan_dialog # noqa: F401 re-export
|
||||
from gui.components.wifi_adb_dialog import open_wifi_adb_dialog as _open_wifi_adb_dialog
|
||||
from gui.components.reservations_view import refresh_reservations as _refresh_reservations_impl
|
||||
from gui.components.high_value_view import refresh_high_value_rooms as _refresh_high_value_rooms_impl
|
||||
@@ -79,8 +75,8 @@ from gui.components.wifi_adb_one_click_scan import (
|
||||
on_scan_one_click as _on_scan_one_click_impl,
|
||||
_handle_scan_result as _handle_scan_result_impl,
|
||||
)
|
||||
from gui.components.run_log_view import refresh_run_log as _refresh_run_log_impl
|
||||
from gui.components.text_search import generic_search_widget as _generic_search_widget_impl
|
||||
from gui.components.run_log_view import refresh_run_log as _refresh_run_log_impl # noqa: F401 re-export
|
||||
from gui.components.text_search import generic_search_widget as _generic_search_widget_impl # noqa: F401 re-export
|
||||
from gui.components.logging_config_io import save_logging_config as _save_logging_config_impl
|
||||
from gui.components.run_params_builder import get_params as _get_params_impl
|
||||
from gui.components.config_io import (
|
||||
|
||||
Reference in new issue
Block a user