================
@@ -3424,11 +3432,17 @@ def create(excludeDecls=False):
def __del__(self):
conf.lib.clang_disposeIndex(self)
- def read(self, path):
+ def read(self, path: StrPath) -> TranslationUnit:
"""Load a TranslationUnit from the given AST file."""
return TranslationUnit.from_ast_file(path, self)
- def parse(self, path, args=None, unsaved_files=None, options=0):
+ def parse(
+ self,
+ path: StrPath,
----------------
Endilll wrote:
Are you sure this is `StrPath` and not `StrBytesPath`? I'm not sure myself, so
don't take it as a suggestion you need to apply without checking first.
https://github.com/llvm/llvm-project/pull/193304
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits