mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
[mlir][linalg][transform][python] Fix mix-in for MaskedVectorize.
Fix forward bug in dac19b457e, which uses
the vertical bar operator for type hints, which is only supported by
Python 3.10 and later, and thus breaks the builds on Python 3.8.
This commit is contained in:
@@ -28,7 +28,7 @@ DynamicIndexList = Sequence[Union[MixedInt, Sequence[MixedInt]]]
|
||||
|
||||
def _dispatch_dynamic_index_list(
|
||||
indices: Union[DynamicIndexList, ArrayAttr],
|
||||
) -> tuple[list[ValueLike], 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:
|
||||
|
||||
Reference in New Issue
Block a user