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
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
lldb/test/API/tools/lldb-dap/completions/TestDAP_completions.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
--- packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 2026-01-15
18:21:57.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 2026-01-15
18:23:14.685234 +0000
@@ -1400,11 +1400,10 @@
}
response = self._send_recv(command_dict)
return response
def request_completions(self, text, frameId=None):
-
def code_units(input: str) -> int:
utf16_bytes = input.encode("utf-16-le")
# one UTF16 codeunit = 2 bytes.
return len(utf16_bytes) // 2
``````````
</details>
https://github.com/llvm/llvm-project/pull/176211
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits