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/bindings/python/clang/cindex.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
--- cindex.py   2026-02-11 03:01:35.000000 +0000
+++ cindex.py   2026-02-11 03:06:10.966087 +0000
@@ -108,13 +108,11 @@
 
     StrPath: TypeAlias = TUnion[str, os.PathLike[str]]
     # The type that is compatible with os.fspath:
     # str, bytes, or os.PathLikes that return either of these two
     StrBytesPath: TypeAlias = TUnion[str, bytes, os.PathLike[str], 
os.PathLike[bytes]]
-    InMemoryFile: TypeAlias = (
-        "tuple[StrBytesPath, TUnion[str, bytes, TextIOWrapper]]"
-    )
+    InMemoryFile: TypeAlias = "tuple[StrBytesPath, TUnion[str, bytes, 
TextIOWrapper]]"
     LibFunc: TypeAlias = TUnion[
         "tuple[str, Optional[list[Any]]]",
         "tuple[str, Optional[list[Any]], Any]",
         "tuple[str, Optional[list[Any]], Any, Callable[..., Any]]",
     ]

``````````

</details>


https://github.com/llvm/llvm-project/pull/180876
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to