[clang] [libclang/python] Add type annotations to the TranslationUnit class (PR #180876)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 05:59:05 PST 2026
================
@@ -3703,7 +3729,9 @@ def __getitem__(self, key: int) -> Diagnostic:
return DiagIterator(self)
- def reparse(self, unsaved_files=None, options=0):
+ def reparse(
+ self, unsaved_files: list[InMemoryFile] | None = None, options: int = 0
----------------
DeinAlptraum wrote:
Why not? This is passed into `clang_reparseTranslationUnit` which is indeed defined as taking an `unsigned` for `options`: https://github.com/llvm/llvm-project/blob/0c91bc6ae659e306bffed08652ee2f1091efcdb9/clang/include/clang-c/Index.h#L1082
https://github.com/llvm/llvm-project/pull/180876
More information about the cfe-commits
mailing list