[Mlir-commits] [mlir] [MLIR][Python] Use infer_type() as a new field specifier (PR #191849)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 13 09:49:00 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-04-13 16:46:06.000000 +0000
+++ test/python/dialects/ext.py 2026-04-13 16:48:30.771563 +0000
@@ -573,13 +573,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_result()
- )
+ arr: Result[
+ Array[IntegerType[32], IntegerAttr[IntegerType[32], 3]]
+ ] = infer_result()
with Context(), Location.unknown():
TestType.load()
# CHECK: irdl.dialect @ext_type {
# CHECK: irdl.type @array {
``````````
</details>
https://github.com/llvm/llvm-project/pull/191849
More information about the Mlir-commits
mailing list