[Mlir-commits] [mlir] [MLIR][Python] Support region in python-defined dialects (PR #179086)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 2 05:45:10 PST 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
``````````
: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
--- python/mlir/dialects/ext.py 2026-02-02 13:43:09.000000 +0000
+++ python/mlir/dialects/ext.py 2026-02-02 13:44:34.233336 +0000
@@ -273,13 +273,11 @@
[] if can_infer_types else [i for i in fields if isinstance(i, ResultDef)]
)
# results are placed at the beginning of the parameter list,
# but operands and attributes can appear in any relative order.
args = result_args + [
- i
- for i in fields
- if not isinstance(i, ResultDef | RegionDef)
+ i for i in fields if not isinstance(i, ResultDef | RegionDef)
]
positional_args = [
i.name for i in args if i.variadicity != Variadicity.optional
]
optional_args = [i.name for i in args if i.variadicity == Variadicity.optional]
``````````
</details>
https://github.com/llvm/llvm-project/pull/179086
More information about the Mlir-commits
mailing list