[Mlir-commits] [mlir] [MLIR][Python] make Sliceable inherit from Sequence (PR #170551)
Ingo Müller
llvmlistbot at llvm.org
Fri Dec 5 00:28:58 PST 2025
================
@@ -43,6 +43,10 @@ def testTraverseOpRegionBlockIterators():
)
op = module.operation
assert op.context is ctx
+ # Note, __nb_signature__ stores the fully-qualified signature - the actual type stub emitted is
+ # class RegionSequence(Sequence[Region])
+ # CHECK: class RegionSequence(collections.abc.Sequence[mlir._mlir_libs._mlir.ir.Region])
+ print(RegionSequence.__nb_signature__)
----------------
ingomueller-net wrote:
Oh, that's a nice way to test this!
https://github.com/llvm/llvm-project/pull/170551
More information about the Mlir-commits
mailing list