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_type.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_type.py 2026-03-17 14:27:58.000000 +0000
+++ tests/cindex/test_type.py 2026-03-18 00:56:15.506080 +0000
@@ -534,11 +534,14 @@
source = """
int &reference;
"""
tu = get_tu(source, lang="cpp")
reference = get_cursor(tu, "reference")
-
self.assertEqual(reference.type.get_non_reference().get_ref_qualifier(),
RefQualifierKind.NONE)
+ self.assertEqual(
+ reference.type.get_non_reference().get_ref_qualifier(),
+ RefQualifierKind.NONE,
+ )
def test_unqualified(self):
source = """
bool b;
const long c;
@@ -560,11 +563,13 @@
self.assertEqual(v.type.get_unqualified().spelling, "long")
self.assertEqual(cv.type.get_unqualified().spelling, "int")
self.assertEqual(l.type.get_unqualified().spelling, "int *")
self.assertEqual(r.type.get_unqualified().spelling, "const int *")
self.assertEqual(ref.type.get_unqualified().spelling, "const bool &")
-
self.assertEqual(ref.type.get_non_reference().get_unqualified().spelling,
"bool")
+ self.assertEqual(
+ ref.type.get_non_reference().get_unqualified().spelling, "bool"
+ )
def test_fully_qualified_name(self):
source = """
namespace home {
class Bar {
``````````
</details>
https://github.com/llvm/llvm-project/pull/175534
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits