[Mlir-commits] [mlir] [MLIR][Python] Register `OpAttributeMap` as `Mapping` for `match` compatibility (PR #174292)
Maksim Levental
llvmlistbot at llvm.org
Tue Jan 6 09:19:19 PST 2026
================
@@ -2629,6 +2639,21 @@ class PyOpAttributeMap {
mlirIdentifierStr(namedAttr.name).length));
}
+ nb::object getWithDefaultIndexed(intptr_t key, nb::object defaultValue) {
----------------
makslevental wrote:
Ok makes sense (and I agree indexed access for the attribute map never made sense).
https://github.com/llvm/llvm-project/pull/174292
More information about the Mlir-commits
mailing list