[Mlir-commits] [mlir] [mlir][python] auto-locs (PR #151246)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jul 29 16:02:00 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/location.py
``````````

</details>

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

``````````diff
--- location.py	2025-07-29 22:59:30.000000 +0000
+++ location.py	2025-07-29 23:01:29.387456 +0000
@@ -42,11 +42,10 @@
     with Context() as ctx, Location.unknown(), with_infer_location():
         ctx.allow_unregistered_dialects = True
         op = Operation.create("custom.op1")
         # CHECK: loc(callsite("testInferLocations"("{{.*}}/test/python/ir/location.py":13:13 to 44:43) at callsite("run"("{{.*}}/test/python/ir/location.py":4:4 to 12:7) at "<module>"("{{.*}}/test/python/ir/location.py":0:0 to 50:23))))
         print(op.location)
-
 
 
 run(testInferLocations)
 
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/151246


More information about the Mlir-commits mailing list