[Mlir-commits] [mlir] [MLIR][Transform][Python] transform.foreach wrapper and .owner OpViews (PR #172228)

Allan Renucci llvmlistbot at llvm.org
Mon Jan 26 09:04:42 PST 2026


================
@@ -4646,15 +4646,15 @@ void mlir::python::populateIRCore(nb::module_ &m) {
           kDumpDocstring)
       .def_prop_ro(
           "owner",
-          [](PyValue &self) -> nb::object {
+          [](PyValue &self) -> nb::typed<nb::object, PyOpView> {
----------------
allanrenucci wrote:

Is this type correct? The function can return a `PyBlock`.

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


More information about the Mlir-commits mailing list