[Mlir-commits] [mlir] [mlir][python] fix flatnamespace (PR #174057)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Dec 30 22:12:28 PST 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/examples/standalone/test/lit.cfg.py mlir/examples/standalone/test/python/smoketest.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
--- python/smoketest.py 2025-12-31 06:10:31.000000 +0000
+++ python/smoketest.py 2025-12-31 06:11:59.238204 +0000
@@ -16,6 +16,18 @@
# CHECK: %[[C:.*]] = arith.constant 2 : i32
# CHECK: standalone.foo %[[C]] : i32
print(str(module))
from mlir.ir import *
-from mlir.dialects import amdgpu, gpu, irdl, linalg, llvm, nvgpu, pdl, quant, smt, sparse_tensor, transform
+from mlir.dialects import (
+ amdgpu,
+ gpu,
+ irdl,
+ linalg,
+ llvm,
+ nvgpu,
+ pdl,
+ quant,
+ smt,
+ sparse_tensor,
+ transform,
+)
``````````
</details>
https://github.com/llvm/llvm-project/pull/174057
More information about the Mlir-commits
mailing list