Skip to content

Commit c732c55

Browse files
author
welli7ngton
committed
fix: TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'
1 parent ec24a33 commit c732c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcity/core/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def find(
282282
waiting_time: int = 10000,
283283
best: bool = True,
284284
grayscale: bool = False,
285-
) -> Tuple[int, int, int, int] | None:
285+
) -> Union[Tuple[int, int, int, int], None]:
286286
"""
287287
Find an element defined by label on screen until a timeout happens.
288288

0 commit comments

Comments
 (0)