[Mlir-commits] [mlir] 0bc1430 - [mlir][linalg][transform][python] Fix type hints
Rahul Kayaith
llvmlistbot at llvm.org
Wed Aug 16 13:21:53 PDT 2023
Author: Rahul Kayaith
Date: 2023-08-16T16:16:47-04:00
New Revision: 0bc1430333b89f0832b1ce4e0d87ddce18e54f33
URL: https://github.com/llvm/llvm-project/commit/0bc1430333b89f0832b1ce4e0d87ddce18e54f33
DIFF: https://github.com/llvm/llvm-project/commit/0bc1430333b89f0832b1ce4e0d87ddce18e54f33.diff
LOG: [mlir][linalg][transform][python] Fix type hints
Older python versions (e.g. 3.8) don't accept `tuple[...]` etc. in type hints.
Added:
Modified:
mlir/python/mlir/dialects/_structured_transform_ops_ext.py
Removed:
################################################################################
diff --git a/mlir/python/mlir/dialects/_structured_transform_ops_ext.py b/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
index b822ba6d75a61d..b63652957d03f3 100644
--- a/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
+++ b/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
@@ -28,7 +28,7 @@
def _dispatch_dynamic_index_list(
indices: Union[DynamicIndexList, ArrayAttr],
-) -> tuple[list[ValueLike], Union[list[int], ArrayAttr], list[bool]]:
+) -> Tuple[List[ValueLike], Union[List[int], ArrayAttr], List[bool]]:
"""Dispatches a list of indices to the appropriate form.
This is similar to the custom `DynamicIndexList` directive upstream:
More information about the Mlir-commits
mailing list