[Mlir-commits] [mlir] [MLIR][Python] add type hints for accessors (PR #158455)

Maksim Levental llvmlistbot at llvm.org
Mon Sep 15 10:55:39 PDT 2025


================
@@ -191,7 +197,7 @@ constexpr const char *opVariadicSegmentOptionalTrailingTemplate =
 ///   {1} is the original name of the attribute.
 constexpr const char *attributeGetterTemplate = R"Py(
   @builtins.property
-  def {0}(self):
+  def {0}(self) -> _ods_ir.Attribute:
----------------
makslevental wrote:

It's not straightforward but sure lemme try.

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


More information about the Mlir-commits mailing list