[clang] [libclang/python] Add some logical typing changes. (PR #138074)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 20:12:03 PDT 2025
================
@@ -2955,6 +2962,10 @@ def __getitem__(self, key):
raise IndexError
return CompletionChunk(self.obj, key)
+ def __iter__(self):
+ for i in range(len(self)):
+ yield self[i]
+
----------------
Endilll wrote:
Can we put this under `if TYPE_CHECKING` somehow?
https://github.com/llvm/llvm-project/pull/138074
More information about the cfe-commits
mailing list