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 6f8afafd308d37d9abc4af0801dd5a4451c13718...1c68440616b555c376a3c227338f23ca80a2c777 clang/bindings/python/clang/cindex.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- cindex.py 2024-12-19 15:22:04.000000 +0000 +++ cindex.py 2024-12-19 16:32:57.052528 +0000 @@ -2027,12 +2027,11 @@ @property def specialized_template(self): """Return the base template that this cursor is a specialization of, if any.""" return Cursor.from_cursor_result( - conf.lib.clang_getSpecializedCursorTemplate(self), - self + conf.lib.clang_getSpecializedCursorTemplate(self), self ) @property def translation_unit(self): """Returns the TranslationUnit to which this Cursor belongs.""" @@ -3414,11 +3413,13 @@ def __repr__(self): return "<File: %s>" % (self.name) def __eq__(self, other): - return isinstance(other, File) and bool(conf.lib.clang_File_isEqual(self, other)) + return isinstance(other, File) and bool( + conf.lib.clang_File_isEqual(self, other) + ) def __ne__(self, other): return not self.__eq__(other) @staticmethod `````````` </details> https://github.com/llvm/llvm-project/pull/120590 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits