================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to