[Mlir-commits] [mlir] [mlir][Python] downcast ir.Value to BlockArgument or OpResult (PR #175264)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jan 9 19:18:29 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/test/python/dialects/python_test.py mlir/test/python/ir/value.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
--- ir/value.py 2026-01-10 03:16:30.000000 +0000
+++ ir/value.py 2026-01-10 03:18:00.454186 +0000
@@ -418,11 +418,12 @@
)
try:
@register_value_caster(IntegerType.static_typeid)
- def dont_cast_int_shouldnt_register(v): ...
+ def dont_cast_int_shouldnt_register(v):
+ ...
except RuntimeError as e:
# CHECK: Value caster is already registered: {{.*}}cast_int
print(e)
``````````
</details>
https://github.com/llvm/llvm-project/pull/175264
More information about the Mlir-commits
mailing list