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

Jannick Kremer via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 17 06:19:12 PDT 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:

As discussed verbally, we should introduce proper names for flag values that can also be combined with bitwise operators. That is out of scope for this annotation PR and will be done elsewhere in the future

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


More information about the cfe-commits mailing list