[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:
Ingo Müller
2023-08-16 16:24:29 +00:00
parent d40fd9e1d9
commit d7e26b5620

View File

@@ -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: