[Mlir-commits] [mlir] [MLIR][Python] Register `OpAttributeMap` as `Mapping` for `match` compatibility (PR #174292)
Maksim Levental
llvmlistbot at llvm.org
Sat Jan 10 06:56:47 PST 2026
================
@@ -1782,6 +1782,9 @@ class MLIR_PYTHON_API_EXPORTED PyOpAttributeMap {
PyNamedAttribute dunderGetItemIndexed(intptr_t index);
+ nanobind::object getWithDefaultNamed(const std::string &key,
----------------
makslevental wrote:
The reason it had the suffix Named is because just `get` in LLVM (and here) almost always means _construct_ but at this point we don't need to bikeshed this anymore so it can stay as get.
https://github.com/llvm/llvm-project/pull/174292
More information about the Mlir-commits
mailing list