Skip to content

Commit 8837b3b

Browse files
committed
fix: pyright check
1 parent c794ee4 commit 8837b3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aao/core/avatar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def locate_oper(
120120
3. 无缓存/匹配失败 → 逐个点击槽位 → OCR 干员名 → 截取头像存盘
121121
"""
122122
image = ctrl.post_screencap().wait().get()
123-
if image is None:
123+
if image is None: # pyright: ignore[reportUnnecessaryComparison]
124124
logger.error("截图失败, 游戏可能已退出或最小化")
125125
return None
126126
slots = detect_slots(context, image)
@@ -168,7 +168,7 @@ def locate_oper(
168168

169169
# 截图详情页
170170
detail_img = ctrl.post_screencap().wait().get()
171-
if detail_img is None:
171+
if detail_img is None: # pyright: ignore[reportUnnecessaryComparison]
172172
logger.warning("截图失败, 跳过该槽位")
173173
continue
174174

0 commit comments

Comments
 (0)