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 
clang/bindings/python/tests/cindex/test_cursor.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
--- tests/cindex/test_cursor.py 2026-02-26 11:53:14.000000 +0000
+++ tests/cindex/test_cursor.py 2026-02-26 12:38:20.101342 +0000
@@ -945,19 +945,13 @@
                 if c.get_num_template_arguments() >= 0:
                     spec = c
                     break
         self.assertIsNotNone(spec)
         self.assertEqual(spec.get_num_template_arguments(), 3)
-        self.assertEqual(
-            spec.get_template_argument_integral_type(0).kind, TypeKind.INT
-        )
-        self.assertEqual(
-            spec.get_template_argument_integral_type(1).kind, TypeKind.INT
-        )
-        self.assertEqual(
-            spec.get_template_argument_integral_type(2).kind, TypeKind.INT
-        )
+        self.assertEqual(spec.get_template_argument_integral_type(0).kind, 
TypeKind.INT)
+        self.assertEqual(spec.get_template_argument_integral_type(1).kind, 
TypeKind.INT)
+        self.assertEqual(spec.get_template_argument_integral_type(2).kind, 
TypeKind.INT)
 
     def test_get_num_template_parameters(self):
         source = "template<typename T, int N> void foo(); template<typename... 
Ts> void bar(); void baz();"
         tu = get_tu(source, lang="cpp")
         foo = get_cursor(tu, "foo")

``````````

</details>


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

Reply via email to