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/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py
 lldb/test/API/functionalities/scripted_frame_provider/test_frame_providers.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
--- TestScriptedFrameProvider.py        2025-12-18 00:49:49.000000 +0000
+++ TestScriptedFrameProvider.py        2025-12-18 00:51:14.467135 +0000
@@ -636,6 +636,5 @@
 
         # Verify frame 2 is the original real frame 0.
         frame2 = thread.GetFrameAtIndex(2)
         self.assertIsNotNone(frame2)
         self.assertIn("thread_func", frame2.GetFunctionName())
-
--- test_frame_providers.py     2025-12-18 00:49:49.000000 +0000
+++ test_frame_providers.py     2025-12-18 00:51:14.573523 +0000
@@ -370,17 +370,13 @@
 
     def get_frame_at_index(self, index):
         """Return frames with valid PCs but no module information."""
         if index == 0:
             # Frame with valid PC (0x1234000) but no module
-            return ValidPCNoModuleFrame(
-                self.thread, 0, 0x1234000, "unknown_function_1"
-            )
+            return ValidPCNoModuleFrame(self.thread, 0, 0x1234000, 
"unknown_function_1")
         elif index == 1:
             # Another frame with valid PC (0x5678000) but no module
-            return ValidPCNoModuleFrame(
-                self.thread, 1, 0x5678000, "unknown_function_2"
-            )
+            return ValidPCNoModuleFrame(self.thread, 1, 0x5678000, 
"unknown_function_2")
         elif index - 2 < len(self.input_frames):
             # Pass through original frames
             return index - 2
         return None

``````````

</details>


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

Reply via email to