[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:49 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.
+- ``Cursor.from_location`` now returns ``None`` instead of a null-cursor.
----------------
Endilll wrote:
```suggestion
- ``Cursor.from_location`` now returns ``None`` instead of a null cursor. This eliminates the last known source of null cursors.
```
https://github.com/llvm/llvm-project/pull/138103
More information about the cfe-commits
mailing list