Skip to content

Commit 5733455

Browse files
make mypy happy
1 parent ce66f3b commit 5733455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def stmt_escapes(stmt: Stmt) -> bool:
890890
else:
891891
assert False, "Unexpected statement type"
892892

893-
def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> bool:
893+
def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> tuple[bool, int]:
894894
if not stmts:
895895
return False, branches_seen
896896
predict = False
@@ -901,7 +901,7 @@ def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_
901901
seen += seen_body
902902
return predict, seen
903903

904-
def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> bool:
904+
def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> tuple[bool, int]:
905905
if isinstance(stmt, BlockStmt):
906906
return stmt_has_jump_on_unpredictable_path_body(stmt.body, branches_seen)
907907
elif isinstance(stmt, SimpleStmt):

0 commit comments

Comments
 (0)