Skip to content

Commit

Permalink
Proper type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Mar 11, 2024
1 parent 1dff1f4 commit 260233e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/chatdbg/chatdbg_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def buildPrompt(debugger: Any) -> Tuple[str, str, str]:
def why(
debugger: lldb.SBDebugger,
command: str,
result: str,
result: lldb.SBCommandReturnObject,
internal_dict: dict,
) -> None:
"""
Expand Down Expand Up @@ -241,7 +241,7 @@ def why(
def print_test(
debugger: lldb.SBDebugger,
command: str,
result: str,
result: lldb.SBCommandReturnObject,
internal_dict: dict,
) -> None:
"""print all variables in a run while recursing through pointers, keeping track of seen addresses"""
Expand Down Expand Up @@ -288,7 +288,7 @@ def print_test(
def _val_to_json(
debugger: lldb.SBDebugger,
command: str,
result: str,
result: lldb.SBCommandReturnObject,
internal_dict: dict,
var: lldb.SBValue,
recurse_max: int,
Expand Down Expand Up @@ -636,7 +636,12 @@ def get_error_message() -> Optional[str]:


@lldb.command("chat")
def chat(debugger: lldb.SBDebugger, command: str, result: str, internal_dict: dict):
def chat(
debugger: lldb.SBDebugger,
command: str,
result: lldb.SBCommandReturnObject,
internal_dict: dict,
):
args, remaining = chatdbg_utils.parse_known_args(command.split())
assistant = _make_assistant(debugger, args)

Expand Down

0 comments on commit 260233e

Please sign in to comment.