[Mlir-commits] [mlir] [MLIR][Python] Make init parameters follow the field definition order (PR #186574)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Mar 19 09:51:09 PDT 2026
================
@@ -124,38 +124,38 @@ class ConstraintOp(Test.Operation, name="constraint"):
y: FloatAttr
class OptionalOp(Test.Operation, name="optional"):
- a: Operand[i32]
- b: Optional[Operand[i32]]
out1: Result[i32]
- out2: Result[i32] | None
out3: Result[i32]
+ a: Operand[i32]
+ out2: Result[i32] | None = None
+ b: Optional[Operand[i32]] = None
----------------
PragmaTwice wrote:
Yup an exception will be raised. I've added a test case for this.
https://github.com/llvm/llvm-project/pull/186574
More information about the Mlir-commits
mailing list