Author: Dave Lee Date: 2026-03-06T18:06:15Z New Revision: 7d48707a180cb972a11f61a2bca0a269f8681a3c
URL: https://github.com/llvm/llvm-project/commit/7d48707a180cb972a11f61a2bca0a269f8681a3c DIFF: https://github.com/llvm/llvm-project/commit/7d48707a180cb972a11f61a2bca0a269f8681a3c.diff LOG: [lldb] Declare types of Python synthetic signatures (NFC) (#184914) Similar to the changes in #182892 --------- Co-authored-by: Ebuka Ezike <[email protected]> Added: Modified: lldb/source/Commands/CommandObjectType.cpp Removed: ################################################################################ diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp index f8b87e267776f..60a695c04ad95 100644 --- a/lldb/source/Commands/CommandObjectType.cpp +++ b/lldb/source/Commands/CommandObjectType.cpp @@ -289,11 +289,11 @@ class CommandObjectTypeSummaryAdd : public CommandObjectParsed, static const char *g_synth_addreader_instructions = "Enter your Python command(s). Type 'DONE' to end.\n" "You must define a Python class with these methods:\n" - " def __init__(self, valobj, internal_dict):\n" - " def num_children(self):\n" - " def get_child_at_index(self, index):\n" - " def get_child_index(self, name):\n" - " def update(self):\n" + " def __init__(self, valobj: lldb.SBValue, internal_dict):\n" + " def num_children(self) -> int:\n" + " def get_child_at_index(self, index: int) -> lldb.SBValue | None:\n" + " def get_child_index(self, name: str) -> int:\n" + " def update(self) -> bool:\n" " '''Optional'''\n" "class synthProvider:\n"; _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
