Skip to content

Commit 1d6f102

Browse files
authored
[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.
1 parent c5613dc commit 1d6f102

File tree

1 file changed

+1
-1
lines changed
  • mlir/python/mlir/_mlir_libs/_mlir

1 file changed

+1
-1
lines changed

mlir/python/mlir/_mlir_libs/_mlir/ir.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ class MemRefType(ShapedType):
21192119
"""
21202120
@property
21212121
def typeid(self) -> TypeID: ...
2122-
def get_strides_and_offset(self) -> tuple[list[int], list[int]]:
2122+
def get_strides_and_offset(self) -> tuple[list[int], int]:
21232123
"""
21242124
The strides and offset of the MemRef type.
21252125
"""

0 commit comments

Comments
 (0)