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/__init__.py 
lldb/packages/Python/lldbsuite/test/tools/lldb_dap/dap_types.py 
lldb/packages/Python/lldbsuite/test/tools/lldb_dap/lldb_dap_testcase.py 
lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session.py 
lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py 
lldb/packages/Python/lldbsuite/test/tools/lldb_dap/utils.py 
lldb/test/API/tools/lldb-dap/utils/TestDAPUtils_DAPConnection.py 
lldb/test/API/tools/lldb-dap/utils/TestDAPUtils_EventHistory.py 
lldb/test/API/tools/lldb-dap/utils/TestDAPUtils_Types.py 
lldb/test/API/tools/lldb-dap/invalidated-event/TestDAP_invalidatedEvent.py 
lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_basic.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_types.py  2026-06-15 
19:21:37.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb_dap/dap_types.py  2026-06-15 
19:37:13.106755 +0000
@@ -544,14 +544,16 @@
 @runtime_checkable
 class ArgsProtocol(Protocol[T]):  # type: ignore[misc]
     __dataclass_fields__: ClassVar[Dict]
 
     @property
-    def response_class_(self) -> Type[T]: ...
+    def response_class_(self) -> Type[T]:
+        ...
 
     @property
-    def command_(self) -> str: ...
+    def command_(self) -> str:
+        ...
 
 
 class Console(StrEnum):
     INTERNAL = "internalConsole"
     INTEGRATED_TERMINAL = "integratedTerminal"
@@ -1644,10 +1646,11 @@
     format: Optional[ValueFormat] = None
 
     command_ = "evaluate"
     response_class_ = EvaluateResponse
 
+
 @dataclass(frozen=True)
 class StepInTargetsResponse(Response):
     @dataclass(frozen=True)
     class Body:
         targets: List[StepInTarget]
--- packages/Python/lldbsuite/test/tools/lldb_dap/utils.py      2026-06-15 
19:21:37.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb_dap/utils.py      2026-06-15 
19:37:13.728571 +0000
@@ -34,11 +34,12 @@
         executable: str,
         args: list[str] | None = None,
         extra_env: list[str] | None = None,
         install_remote: bool = True,
         **kwargs,
-    ) -> subprocess.Popen[bytes]: ...
+    ) -> subprocess.Popen[bytes]:
+        ...
 
 
 @dataclass(frozen=True)
 class DebugAdapterOptions:
     """The options passed when spawning the debug adapter."""
@@ -521,15 +522,18 @@
             Used when the adapter is spawned as a child process.
         `_SocketTransport`: speaks to the adapter using socket. Used when the
             adapter is already running and exposes connection URI.
     """
 
-    def write(self, data: bytes): ...
-
-    def read(self, n: int) -> bytes: ...
-
-    def readline(self) -> bytes: ...
+    def write(self, data: bytes):
+        ...
+
+    def read(self, n: int) -> bytes:
+        ...
+
+    def readline(self) -> bytes:
+        ...
 
     def close(self):
         """Close the transport.
 
         Buffered data will be flushed and transport closed.

``````````

</details>


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

Reply via email to