[clang] [libclang/python] Add type annotations to the TranslationUnit class (PR #180876)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 15 08:40:37 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
----------------
Endilll wrote:

No way `options` is just `int`, right?

https://github.com/llvm/llvm-project/pull/180876


More information about the cfe-commits mailing list