[Mlir-commits] [mlir] [MLIR][Python] fix StandalonePythonModules shipping all dialect modules (PR #155870)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Thu Aug 28 09:03:37 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/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
--- smoketest.py	2025-08-28 15:56:35.000000 +0000
+++ smoketest.py	2025-08-28 16:03:10.386269 +0000
@@ -26,8 +26,11 @@
     print(str(module))
 
 try:
     from mlir_standalone.dialects import quant
 except ImportError as e:
-    assert "symbol not found in flat namespace '_mlirTypeIsAAnyQuantizedType'" not in e.args[0]
+    assert (
+        "symbol not found in flat namespace '_mlirTypeIsAAnyQuantizedType'"
+        not in e.args[0]
+    )
 else:
     assert False, "expected exception not raised"
``````````
</details>
https://github.com/llvm/llvm-project/pull/155870
    
    
More information about the Mlir-commits
mailing list