[clang] [clang][Python] Apply type annotations to Python (PR #173845)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 04:56:16 PST 2026
================
@@ -668,43 +667,43 @@ class CursorKind(BaseEnumeration):
"""
@staticmethod
- def get_all_kinds():
+ def get_all_kinds() -> list[CursorKind]:
----------------
DeinAlptraum wrote:
We do this: https://github.com/llvm/llvm-project/blob/4790a1419907cef0466ca3e34e0e6f1b2ba0360f/clang/bindings/python/clang/cindex.py#L46
which [allows using some of the type annotations features from later versions](https://github.com/llvm/llvm-project/blob/4790a1419907cef0466ca3e34e0e6f1b2ba0360f/clang/bindings/python/clang/cindex.py#L46)
https://github.com/llvm/llvm-project/pull/173845
More information about the cfe-commits
mailing list