Skip to content

Commit 33837a7

Browse files
committed
Add type annotation
1 parent 4698695 commit 33837a7

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
@@ -3,7 +3,7 @@
33
import lexer
44
import parser
55
import re
6-
from typing import Optional, Callable
6+
from typing import Optional, Callable, Iterator
77

88
from parser import Stmt, SimpleStmt, BlockStmt, IfStmt, WhileStmt
99

@@ -1186,7 +1186,7 @@ def analyze_forest(forest: list[parser.AstNode]) -> Analysis:
11861186
)
11871187

11881188

1189-
def get_uop_cache_depths(uop: Uop):
1189+
def get_uop_cache_depths(uop: Uop) -> Iterator[tuple[int, int]]:
11901190
if uop.name == "_SPILL_OR_RELOAD":
11911191
for inputs in range(4):
11921192
for outputs in range(4):

0 commit comments

Comments
 (0)