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-01-23 13:37:29.000000 +0000
+++ cindex.py   2026-01-23 13:39:32.773083 +0000
@@ -3090,15 +3090,14 @@
         )
 
         def __getitem__(self, value: int):
             warnings.warn(self.deprecation_message, DeprecationWarning)
             return 
CompletionChunk.SPELLING_CACHE[CompletionChunkKind.from_id(value)]
-        
+
         def __contains__(self, value: int):
             warnings.warn(self.deprecation_message, DeprecationWarning)
             return CompletionChunkKind.from_id(value) in 
CompletionChunk.SPELLING_CACHE
-
 
     # Functions calls through the python interface are rather slow. 
Fortunately,
     # for most symbols, we do not need to perform a function call. Their 
spelling
     # never changes and is consequently provided by this spelling cache.
     SPELLING_CACHE = {

``````````

</details>


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

Reply via email to