Skip to content

Commit c14ceee

Browse files
committed
update to main
1 parent 3eaf4c8 commit c14ceee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/kirin/dialects/scf/lowering.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import ast
22

33
from kirin import ir, lowering
4-
from kirin.exceptions import DialectLoweringError
5-
from kirin.dialects.py import stmts as pystmts, types
64

75
from . import stmts
86
from .dialect import dialect
@@ -116,7 +114,7 @@ def lower_For(
116114
iterator = state.append_stmt(stmts.Iter(iter_value)).result
117115
body_frame = state.push_frame(lowering.Frame.from_stmts(node.body, state))
118116
body_block = body_frame.current_block
119-
item = body_block.args.append_from(types.Any, "item")
117+
item = body_block.args.append_from(ir.types.Any, "item")
120118

121119
if isinstance(node.target, ast.Name):
122120
item.name = node.target.id

0 commit comments

Comments
 (0)