[Mlir-commits] [llvm] [mlir] [MLIR][Python] reland (narrower) type stub generation (PR #157930)
Ingo Müller
llvmlistbot at llvm.org
Thu Dec 4 00:45:24 PST 2025
ingomueller-net wrote:
> Does `nb::sig` work? It completely replaces the type signature, which might be clunky, but it's an option and doesn't involve a separate file.
Unfortunately, that doesn't work because it can only be used for functions created by nanobind and the functions in question are not only not created by nanobind but not even `PyFunctionObject`s but plain C function pointers, so it's not possible to attach a typing annotation there. But I think Maks' #170551 works nicely 😃
https://github.com/llvm/llvm-project/pull/157930
More information about the Mlir-commits
mailing list