[clang] [clang][Python] Apply type annotations to Python (PR #173845)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 05:32:55 PST 2026
================
@@ -668,43 +667,43 @@ class CursorKind(BaseEnumeration):
"""
@staticmethod
- def get_all_kinds():
+ def get_all_kinds() -> list[CursorKind]:
----------------
Endilll wrote:
The syntax is allowed, but
> Usefulness of this syntax before [PEP 585](https://peps.python.org/pep-0585/) is limited as external tooling like Mypy does not recognize standard collections as generic.
It could be the case that the tooling has changed in the meantime, though.
https://github.com/llvm/llvm-project/pull/173845
More information about the cfe-commits
mailing list