[Mlir-commits] [mlir] [mlir][python] expose remaining Location inspection API (PR #192630)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 17 09:52:23 PDT 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/ir/location.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
--- location.py 2026-04-17 15:33:38.000000 +0000
+++ location.py 2026-04-17 16:51:53.381797 +0000
@@ -183,13 +183,11 @@
def testFused():
with Context() as ctx:
loc_single = FusedLoc.get([NameLoc.get("apple")])
loc = FusedLoc.get([NameLoc.get("apple"), NameLoc.get("banana")])
attr = Attribute.parse('"sauteed"')
- loc_attr = FusedLoc.get(
- [NameLoc.get("carrot"), NameLoc.get("potatoes")], attr
- )
+ loc_attr = FusedLoc.get([NameLoc.get("carrot"), NameLoc.get("potatoes")], attr)
loc_empty = FusedLoc.get([])
loc_empty_attr = FusedLoc.get([], attr)
loc_single_attr = FusedLoc.get([NameLoc.get("apple")], attr)
ctx = None
``````````
</details>
https://github.com/llvm/llvm-project/pull/192630
More information about the Mlir-commits
mailing list