P3: 清理过期 TODO + 修正过期路径注释
- operations/__init__.py:
- 模块描述里 "Underlying_Operations.py 模块化" 改为
"douyin/core/underlying_operations.py 模块化拆分"(原文件已迁移)
- 删除 "TODO: 逐步迁移后改为从子模块导入"——
导入是有意保留的向后兼容层,不是待办
- douyin/reservation/core/__init__.py:
- 删除 "临时导入" "TODO: 迁移完成后改为从子模块导入"
- 这个 re-export 层也是有意保留的向后兼容设计
回归:140 .py 编译通过;operations + reservation.core 模块加载 OK;
test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
9c3cf86f41
commit
0c62696118
2 files changed
+5
-6
No files matched your search
@@ -1,10 +1,9 @@
|
||||
"""预约核心模块
|
||||
|
||||
本目录包含从 douyin_reservation_logic.py 模块化后的预约核心逻辑。
|
||||
从 douyin_reservation_logic.py 拆出来的预约核心逻辑:纯函数 + 数据处理。
|
||||
对外仍统一通过本包导出,避免下游代码直接耦合到 douyin_reservation_logic 内部。
|
||||
"""
|
||||
|
||||
# 临时导入:从原文件导入,后续会逐步迁移
|
||||
# TODO: 迁移完成后改为从子模块导入
|
||||
from ...reservation.douyin_reservation_logic import (
|
||||
_now_ts,
|
||||
_normalize_room_title_for_matching,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""底层操作模块
|
||||
|
||||
本目录包含从 Underlying_Operations.py 模块化后的操作模块。
|
||||
本目录包含从 douyin/core/underlying_operations.py 模块化拆分出的子模块。
|
||||
对外仍统一通过本包导出符号,避免下游代码直接耦合到内部子模块路径。
|
||||
"""
|
||||
|
||||
# 从子模块导入
|
||||
@@ -17,8 +18,7 @@ from .screenshot_operations import (
|
||||
save_reward_pic,
|
||||
)
|
||||
|
||||
# 从原文件导入以保持向后兼容
|
||||
# TODO: 逐步迁移后改为从子模块导入
|
||||
# 从原始大文件再导出,保持向后兼容;新代码请优先使用上面的子模块导入。
|
||||
from douyin.core.underlying_operations import (
|
||||
_safe_replace_file,
|
||||
_ensure_parent_dir,
|
||||
|
||||
Reference in new issue
Block a user