[clang] [libclang/python] Simplify __eq__ operators (PR #140540)

Jannick Kremer via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 21:49:01 PDT 2025


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


More information about the cfe-commits mailing list