[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:56:50 PDT 2025
================
@@ -77,6 +77,8 @@ Clang Frontend Potentially Breaking Changes
Clang Python Bindings Potentially Breaking Changes
--------------------------------------------------
+- Calling methods on null-cursors now leads to an exception.
----------------
Endilll wrote:
```suggestion
- Almost all `Cursor` methods now assert that they are called on non-null cursors. Most of the time null cursors were mapped to `None`, so no widespread breakages are expected.
```
https://github.com/llvm/llvm-project/pull/138103
More information about the cfe-commits
mailing list