1 parent c794ee4 commit 8837b3bCopy full SHA for 8837b3b
1 file changed
aao/core/avatar.py
@@ -120,7 +120,7 @@ def locate_oper(
120
3. 无缓存/匹配失败 → 逐个点击槽位 → OCR 干员名 → 截取头像存盘
121
"""
122
image = ctrl.post_screencap().wait().get()
123
- if image is None:
+ if image is None: # pyright: ignore[reportUnnecessaryComparison]
124
logger.error("截图失败, 游戏可能已退出或最小化")
125
return None
126
slots = detect_slots(context, image)
@@ -168,7 +168,7 @@ def locate_oper(
168
169
# 截图详情页
170
detail_img = ctrl.post_screencap().wait().get()
171
- if detail_img is None:
+ if detail_img is None: # pyright: ignore[reportUnnecessaryComparison]
172
logger.warning("截图失败, 跳过该槽位")
173
continue
174
0 commit comments