[clang] [libclang/python] Add typing annotations for the Cursor class (PR #138103)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu May 15 23:32:13 PDT 2025


================
@@ -1545,6 +1545,16 @@ class ExceptionSpecificationKind(BaseEnumeration):
 ### Cursors ###
 
 
+# This guard is used to ensure that no operations are possible on null cursors
----------------
Endilll wrote:

Yes, I think documentation on hover is helpful, which doesn't work without docstrings (at least in VS Code with the Python extension from Microsoft): 
![image](https://github.com/user-attachments/assets/08fbb17c-ca28-4e18-b99f-491f2e0e65f5)


https://github.com/llvm/llvm-project/pull/138103


More information about the cfe-commits mailing list