[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 06:58:28 PDT 2024


================

----------------
TsXor wrote:

What I think is just contradictory: I don't see value in leaving `# type: ignore` at the call sites of those functions everywhere. If you are satisfied with this, why don't we just make a `cindex.pyi` stub independent from `cindex.py`? Users of `cindex.py` won't notice either way.

I chose this metadata reflection way like `pydantic` just because it is beneficial to this binding. Having typed C functions can let us make less errors and easier to review.

The ultimate goal of introducing inline typing is to benefit **both** the project developers and users. I'm not being sarcastic. If we are really satisfied with this, we should really consider using separated `pyi` stubs instead of ignoring every call.

https://github.com/llvm/llvm-project/pull/101941


More information about the cfe-commits mailing list