
CodexandClaude Opus 4.7
a337b4b93d
underlying_operations 第三轮拆分(2434 → 2351,再瘦身 83 行)
新增 2 个子模块:
- device_select (新, 73) select_device 设备选择交互(无 self.X)
- ocr_digits (新, 49) analyse_pic_digits 数字 OCR 识别
(保留 analyser 参数以调 analyser.analyse_pic_word)
策略:
- select_device 的 self.X 全是 _adb_path / _adb_args,已经是 module-level,
搬出后改用 from .adb_helpers import _adb_path, _adb_args 即可。
- analyse_pic_digits 用 self.analyse_pic_word(递归调用类内大方法)。
搬到 module-level 后第一参数从 self 改名 analyser,类内 forwarding
传 self 即可,外部 op.analyse_pic_digits(picname) 完全兼容。
回归:
- 4 个新/改文件 compileall 通过
- pytest 353 passed / 1 skipped
- underlying_operations.select_device / analyse_pic_digits 类方法和 module-level
函数都可访问
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 20:12:40 +08:00
..
2026-05-21 19:03:43 +08:00
2026-05-21 11:43:44 +08:00
2026-05-21 20:12:40 +08:00
2026-01-02 23:57:03 +08:00
2026-05-21 19:03:43 +08:00
2026-05-21 10:18:17 +08:00
2026-01-07 19:06:10 +08:00
2026-05-21 09:01:14 +08:00
2026-05-21 10:18:17 +08:00
2026-05-21 20:12:40 +08:00
2026-05-21 00:23:14 +08:00