[clang] [clang][Python] Apply type annotations to Python (PR #173845)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 04:45:31 PST 2026
================
@@ -668,43 +667,43 @@ class CursorKind(BaseEnumeration):
"""
@staticmethod
- def get_all_kinds():
+ def get_all_kinds() -> list[CursorKind]:
----------------
Endilll wrote:
I'm not sure we can use `list[]` before 3.9: https://peps.python.org/pep-0585/#:~:text=Usefulness%20of%20this%20syntax%20before%20PEP%20585%20is%20limited%20as%20external%20tooling%20like%20Mypy%20does%20not%20recognize%20standard%20collections%20as%20generic%2E
https://github.com/llvm/llvm-project/pull/173845
More information about the cfe-commits
mailing list