[Mlir-commits] [mlir] [mlir][python] add use_name_loc_as_prefix to value.get_name() (PR #135052)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 9 10:11:54 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 HEAD~1...HEAD mlir/test/python/ir/value.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- value.py	2025-04-09 17:07:56.000000 +0000
+++ value.py	2025-04-09 17:11:28.155029 +0000
@@ -409,11 +409,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/135052


More information about the Mlir-commits mailing list