lanza created this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits.
Python3.5 (3.4?) added type annotations to the python language. This lets tools such as LSPs provide useful IDE-like completion when writing python. Add type annotations throughout the python swig API would make writing lldb python tooling much more approachable for users. This diff is a first demonstration of the idea. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D84269 Files: lldb/bindings/python.swig Index: lldb/bindings/python.swig =================================================================== --- lldb/bindings/python.swig +++ lldb/bindings/python.swig @@ -137,9 +137,9 @@ debugger_unique_id = 0 if _initialize: SBDebugger.Initialize() -debugger = None -target = None -process = None -thread = None -frame = None +debugger: lldb.SBDebugger = None +target: lldb.SBTarget = None +process: lldb.SBProcess = None +thread: lldb.SBThread = None +frame: lldb.SBFrame = None %}
Index: lldb/bindings/python.swig =================================================================== --- lldb/bindings/python.swig +++ lldb/bindings/python.swig @@ -137,9 +137,9 @@ debugger_unique_id = 0 if _initialize: SBDebugger.Initialize() -debugger = None -target = None -process = None -thread = None -frame = None +debugger: lldb.SBDebugger = None +target: lldb.SBTarget = None +process: lldb.SBProcess = None +thread: lldb.SBThread = None +frame: lldb.SBFrame = None %}
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits