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/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py
 lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py 
lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints.py 
lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py 
lldb/test/API/tools/lldb-dap/exception/cpp/TestDAP_exception_cpp.py 
lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.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-23 
18:38:48.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 2026-01-23 
18:40:34.552978 +0000
@@ -45,11 +45,12 @@
 # See lldbtest.Base.spawnSubprocess, which should help ensure any processes
 # created by the DAP client are terminated correctly when the test ends.
 class SpawnHelperCallback(Protocol):
     def __call__(
         self, executable: str, args: List[str], extra_env: List[str], **kwargs
-    ) -> subprocess.Popen: ...
+    ) -> subprocess.Popen:
+        ...
 
 
 ## DAP type references
 
 
@@ -2061,11 +2062,13 @@
     logging.basicConfig(
         format="%(asctime)s - %(levelname)s - %(message)s",
         level=(
             logging.DEBUG
             if opts.verbose > 1
-            else logging.INFO if opts.verbose > 0 else logging.WARNING
+            else logging.INFO
+            if opts.verbose > 0
+            else logging.WARNING
         ),
     )
 
     if opts.adapter is None and opts.connection is None:
         print(

``````````

</details>


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

Reply via email to