[clang] [libclang/python] Add type annotations to the TranslationUnit class (PR #180876)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 17 07:05:07 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
----------------
Endilll wrote:
I think we should expose flags in Python via one of those two facilities, and type of options should be `CXReparse_Flags`
https://github.com/llvm/llvm-project/pull/180876
More information about the cfe-commits
mailing list