[Mlir-commits] [mlir] [MLIR] [Python] More improvements to type annotations (PR #188468)
Sergei Lebedev
llvmlistbot at llvm.org
Wed Mar 25 07:02:06 PDT 2026
================
@@ -2523,7 +2523,7 @@ void PyOpAttributeMap::bind(nb::module_ &m) {
"Returns a list of attribute values.")
.def(
"items",
- [](PyOpAttributeMap &self) {
+ [](PyOpAttributeMap &self) -> nb::typed<nb::list, nb::tuple> {
----------------
superbobry wrote:
Good point, actually, we can parameterize the tuple as well. Done.
https://github.com/llvm/llvm-project/pull/188468
More information about the Mlir-commits
mailing list