[Mlir-commits] [mlir] [mlir][ODS] Name obfuscation for private dialects (PR #198083)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 20 07:09:15 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/utils/private-name-obfuscator-example.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
--- private-name-obfuscator-example.py	2026-05-20 14:07:07.000000 +0000
+++ private-name-obfuscator-example.py	2026-05-20 14:08:29.167663 +0000
@@ -46,18 +46,14 @@
 
 
 def main() -> int:
     name = sys.stdin.read()
     if not name:
-        sys.stderr.write(
-            "private-name-obfuscator-example: empty name on stdin\n"
-        )
+        sys.stderr.write("private-name-obfuscator-example: empty name on stdin\n")
         return 1
     if "\n" in name:
-        sys.stderr.write(
-            "private-name-obfuscator-example: name contains a newline\n"
-        )
+        sys.stderr.write("private-name-obfuscator-example: name contains a newline\n")
         return 1
 
     # Ensure the table file exists before we open it for read+write.
     open(TABLE_PATH, "a").close()
 

``````````

</details>


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


More information about the Mlir-commits mailing list