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/examples/python/templates/scripted_frame_provider.py 
lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py
 
lldb/test/API/functionalities/scripted_frame_provider/c_python_frame_provider.py
 lldb/test/API/functionalities/scripted_frame_provider/test_frame_providers.py 
lldb/test/API/python_api/frame_list/TestSBFrameList.py 
lldb/examples/python/templates/scripted_process.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
--- test/API/functionalities/scripted_frame_provider/c_python_frame_provider.py 
2025-10-15 03:23:33.000000 +0000
+++ test/API/functionalities/scripted_frame_provider/c_python_frame_provider.py 
2025-10-15 03:25:32.616217 +0000
@@ -1,10 +1,11 @@
 import lldb
 from lldb.plugins.scripted_process import ScriptedFrame
 from lldb.plugins.scripted_frame_provider import ScriptedFrameProvider
 
 import inspect, re
+
 
 class CPythonScriptedFrame(ScriptedFrame):
     """CPython scripted frame with full control over frame behavior."""
 
     def __init__(self, thread, idx, py_frame_info):
@@ -21,11 +22,10 @@
         line_entry.SetLine(py_frame_info.positions.lineno)
         line_entry.SetColumn(py_frame_info.positions.col_offset)
 
         self.sym_ctx = lldb.SBSymbolContext()
         self.sym_ctx.SetLineEntry(line_entry)
-
 
     def get_id(self):
         return self.idx
 
     def get_pc(self):
@@ -61,6 +61,5 @@
         frames = []
         for idx, py_frame in enumerate(python_frames):
             frames.append(CPythonScriptedFrame(self.thread, idx, py_frame))
 
         return frames
-

``````````

</details>


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

Reply via email to