[Mlir-commits] [mlir] [MLIR][Python] add/fix docstrings in IRCore (PR #167063)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Nov 7 22:34:06 PST 2025
================
@@ -3692,7 +3869,22 @@ void mlir::python::populateIRCore(nb::module_ &m) {
nb::arg("operands") = nb::none(), nb::arg("attributes") = nb::none(),
nb::arg("successors") = nb::none(), nb::arg("regions") = 0,
nb::arg("loc") = nb::none(), nb::arg("ip") = nb::none(),
- nb::arg("infer_type") = false, kOperationCreateDocstring)
+ nb::arg("infer_type") = false,
+ R"(
+ Creates a new operation.
+
+ Args:
+ name: Operation name (e.g. "dialect.operation").
----------------
jpienaar wrote:
I would have thought in in ` quotes? (Feels akin to code construct and to be formatted mono space). But doesn't seem widely done.
https://github.com/llvm/llvm-project/pull/167063
More information about the Mlir-commits
mailing list