[clang] [clang][Python] Apply type annotations to Python (PR #173845)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 05:43:13 PST 2026
================
@@ -668,43 +667,43 @@ class CursorKind(BaseEnumeration):
"""
@staticmethod
- def get_all_kinds():
+ def get_all_kinds() -> list[CursorKind]:
----------------
DeinAlptraum wrote:
Hmm interesting. I just tested this with mypy in the python 3.8 environment I used during type annotation (for compatibility, and it doesn't seem to be an issue anymore (e.g. #78114 passes a strcit mypy type-check with the Python3.8 version)
https://github.com/llvm/llvm-project/pull/173845
More information about the cfe-commits
mailing list