[Mlir-commits] [mlir] [MLIR][Python] add type hints for accessors (PR #158455)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Sep 14 17:53:13 PDT 2025
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/test/python/dialects/python_test.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_test.py 2025-09-15 00:50:19.000000 +0000
+++ python_test.py 2025-09-15 00:52:47.046368 +0000
@@ -721,10 +721,11 @@
# CHECK: [IntegerType(i3)]
print(types(op.variadic2))
# CHECK: i4
print(op.non_variadic3.type)
+
# CHECK-LABEL: TEST: testVariadicAndNormalRegion
@run
def testVariadicAndNormalRegionOp():
with Context() as ctx, Location.unknown(ctx):
module = Module.create()
``````````
</details>
https://github.com/llvm/llvm-project/pull/158455
More information about the Mlir-commits
mailing list