[clang] [libclang/python] Do not rely on `ctypes`' `errcheck` (PR #105490)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 21 02:58:49 PDT 2024
================
@@ -424,7 +424,7 @@ def location(self):
@property
def spelling(self):
- return conf.lib.clang_getDiagnosticSpelling(self) # type: ignore [no-any-return]
+ return _CXString.from_result(conf.lib.clang_getDiagnosticSpelling(self))
----------------
DeinAlptraum wrote:
This allows us to remove 30 out of the 98 existing `type: ignore [no-any-return]` statements
https://github.com/llvm/llvm-project/pull/105490
More information about the cfe-commits
mailing list