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 HEAD~1...HEAD clang/bindings/python/clang/cindex.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- cindex.py 2025-05-01 09:37:43.000000 +0000 +++ cindex.py 2025-05-01 09:40:11.510907 +0000 @@ -2197,13 +2197,11 @@ Determine whether the given cursor has any attributes. """ return bool(conf.lib.clang_Cursor_hasAttrs(self)) @staticmethod - def from_result( - res: Cursor, arg: Cursor | TranslationUnit | Type - ) -> Cursor | None: + def from_result(res: Cursor, arg: Cursor | TranslationUnit | Type) -> Cursor | None: assert isinstance(res, Cursor) # FIXME: There should just be an isNull method. if res == conf.lib.clang_getNullCursor(): return None `````````` </details> https://github.com/llvm/llvm-project/pull/138103 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits