[Mlir-commits] [mlir] [MLIR][Python] rename checked gettors and add unchecked gettors (PR #160954)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 26 15:30:38 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/attributes.py mlir/test/python/ir/builtin_types.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
--- builtin_types.py 2025-09-26 22:26:21.000000 +0000
+++ builtin_types.py 2025-09-26 22:30:11.253219 +0000
@@ -410,11 +410,13 @@
print(e)
else:
print("Exception not produced")
try:
- VectorType.get_checked(shape, f32, scalable=[False, True], scalable_dims=[1])
+ VectorType.get_checked(
+ shape, f32, scalable=[False, True], scalable_dims=[1]
+ )
except ValueError as e:
# CHECK: kwargs are mutually exclusive.
print(e)
else:
print("Exception not produced")
``````````
</details>
https://github.com/llvm/llvm-project/pull/160954
More information about the Mlir-commits
mailing list