[mlir] [python] Fixed the return type of MemRefType.get_strides_and_offset (#144523)

Previously, the return type for `offset` was `list[int]`, which clearly
is not right.
This commit is contained in:
Sergei Lebedev
2025-06-18 14:53:20 +01:00
committed by GitHub
parent c5613dc863
commit 1d6f1029f7

View File

@@ -2119,7 +2119,7 @@ class MemRefType(ShapedType):
"""
@property
def typeid(self) -> TypeID: ...
def get_strides_and_offset(self) -> tuple[list[int], list[int]]:
def get_strides_and_offset(self) -> tuple[list[int], int]:
"""
The strides and offset of the MemRef type.
"""