[Mlir-commits] [mlir] [MLIR][Python] fix getOwner to return (typed) nb::object instead of abstract PyOpView (PR #165053)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Oct 25 10:51:04 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/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
--- value.py	2025-10-25 17:49:06.000000 +0000
+++ value.py	2025-10-25 17:50:30.000561 +0000
@@ -424,11 +424,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/165053


More information about the Mlir-commits mailing list