This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add some example type anotations to python.swig
AbandonedPublic

Authored by lanza on Jul 21 2020, 1:55 PM.

Details

Reviewers
None
Summary

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.

Diff Detail

Event Timeline

lanza created this revision.Jul 21 2020, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2020, 1:55 PM
labath added a subscriber: labath.Jul 22 2020, 12:45 AM

IIUC, this would make the file incompatible with python2, which we still kind of support (though hopefully not for long). This seems like a good idea, but we first need to sort out our py2 story. Given that we've just branched for the 11.0 release, this may actually be a pretty good time to have that disussion, if you would care to start one.

lanza added a comment.Aug 3 2020, 3:11 PM

Sounds good, just sent out a message to the mailing list.

lanza abandoned this revision.Aug 13 2021, 11:51 AM