DeinAlptraum wrote:

The `# type: ignore [no-any-return]` are added in cases where the return type 
cannot be inferred, usually the libclang library functions called on the 
`conf.lib` object, since they are added dynamically. By combining the library 
call with the `isinstance` check, even without knowing the type of the library 
functions it becomes obvious that the result of a boolean expression is 
returned, so the type-ignore becomes unnecessary

https://github.com/llvm/llvm-project/pull/140540
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to