[Mlir-commits] [mlir] [MLIR][Python] Make init parameters follow the field definition order (PR #186574)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Mar 14 01:12:24 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD mlir/python/mlir/dialects/ext.py mlir/test/python/dialects/ext.py mlir/test/python/dialects/transform_op_interface.py mlir/test/python/integration/dialects/bf.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/python/dialects/ext.py 2026-03-14 07:35:48.000000 +0000
+++ test/python/dialects/ext.py 2026-03-14 08:11:54.059452 +0000
@@ -554,13 +554,13 @@
class MakeArrayOp(TestType.Operation, name="make_array"):
arr: Result[Array]
class MakeArray3Op(TestType.Operation, name="make_array3"):
- arr: Result[Array[IntegerType[32], IntegerAttr[IntegerType[32], 3]]] = (
- infer_type()
- )
+ arr: Result[
+ Array[IntegerType[32], IntegerAttr[IntegerType[32], 3]]
+ ] = infer_type()
with Context(), Location.unknown():
TestType.load()
# CHECK: irdl.dialect @ext_type {
# CHECK: irdl.type @array {
``````````
</details>
https://github.com/llvm/llvm-project/pull/186574
More information about the Mlir-commits
mailing list