[clang] [clang][CIR][docs] Fix a Python 3.8 compatibility issue in PostProcessCIRDocs.py (PR #192255)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 06:05:36 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 clang/docs/CIR/_raw/PostProcessCIRDocs.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
--- PostProcessCIRDocs.py 2026-04-15 12:59:59.000000 +0000
+++ PostProcessCIRDocs.py 2026-04-15 13:04:56.530019 +0000
@@ -50,8 +50,10 @@
.. toctree::
:numbered:
:maxdepth: 1
{}
-""".format("\n ".join(cir_docs_toctree))
+""".format(
+ "\n ".join(cir_docs_toctree)
+ )
with open(INDEX_OUTPUT_PATH, "w", encoding="utf-8") as fp:
fp.write(index_content)
``````````
</details>
https://github.com/llvm/llvm-project/pull/192255
More information about the cfe-commits
mailing list