Skip to content

Commit f15fc1f

Browse files
authored
Fix defaults for func.Invoke+ func.Call (#378)
1 parent be7ac95 commit f15fc1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kirin/dialects/func/stmts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Call(ir.Statement):
6161
# not a fixed type here so just any
6262
callee: ir.SSAValue = info.argument()
6363
inputs: tuple[ir.SSAValue, ...] = info.argument()
64-
kwargs: tuple[str, ...] = info.attribute(default_factory=lambda: ())
64+
kwargs: tuple[str, ...] = info.attribute(default=())
6565
result: ir.ResultValue = info.result()
6666
purity: bool = info.attribute(default=False)
6767

@@ -214,7 +214,7 @@ class Invoke(ir.Statement):
214214
traits = frozenset({ir.MaybePure()})
215215
callee: ir.Method = info.attribute()
216216
inputs: tuple[ir.SSAValue, ...] = info.argument()
217-
kwargs: tuple[str, ...] = info.attribute()
217+
kwargs: tuple[str, ...] = info.attribute(default=())
218218
result: ir.ResultValue = info.result()
219219
purity: bool = info.attribute(default=False)
220220

0 commit comments

Comments
 (0)