[Mlir-commits] [mlir] [mlir:python] Add manual typing annotations to `mlir.register_*` functions. (PR #170627)
Maksim Levental
llvmlistbot at llvm.org
Thu Dec 4 14:22:03 PST 2025
================
@@ -126,6 +134,10 @@ NB_MODULE(_mlir, m) {
return valueCaster;
});
},
+ nb::sig("def register_value_caster(typeid: _mlir.ir.TypeID, *, "
+ "replace: bool = False) "
+ "-> typing.Callable[[typing.Callable[[T], U]], "
+ "typing.Callable[[T], U]]"),
----------------
makslevental wrote:
(and same for the other two)
https://github.com/llvm/llvm-project/pull/170627
More information about the Mlir-commits
mailing list