[Mlir-commits] [mlir] [mlir:linalg:py] Undo unintentional type narrowing from #214539. (PR #217543)
Ingo Müller
llvmlistbot at llvm.org
Thu Aug 20 03:51:17 PDT 2026
https://github.com/ingomueller-net updated https://github.com/llvm/llvm-project/pull/217543
>From 09ce979fa07099a41e322a09f5c3186f29da3e34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ingo=20M=C3=BCller?= <ingomueller at google.com>
Date: Thu, 20 Aug 2026 09:23:51 +0200
Subject: [PATCH] [mlir:linalg:py] Undo unintentional type narrowing from
#214539.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR undoes the (presumably) unintenional type narrowing in the
Python overloads of the `TileUsingForOp` transform op introduced in
#214539. Previously, the overloads accepted `DynamicIndexList` as well
as `None` which the constructors they forward to still accept. The new
type signature, however, did not allow them anymore (even though it used
`= None` as default value). The PR, thus, simple adds back the two
types.
Signed-off-by: Ingo Müller <ingomueller at google.com>
---
mlir/python/mlir/dialects/transform/structured.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mlir/python/mlir/dialects/transform/structured.py b/mlir/python/mlir/dialects/transform/structured.py
index 4c7d76e70c5d9..9862447824bc9 100644
--- a/mlir/python/mlir/dialects/transform/structured.py
+++ b/mlir/python/mlir/dialects/transform/structured.py
@@ -549,8 +549,8 @@ def __init__(
loop_types: Union[Type, List[Type]],
target: Union[Operation, Value],
*,
- sizes: MixedValues = None,
- interchange: MixedValues = None,
+ sizes: MixedValues | DynamicIndexList | None = None,
+ interchange: MixedValues | None = None,
loc=None,
ip=None,
):
@@ -561,8 +561,8 @@ def __init__(
self,
target: Union[Operation, Value, OpView],
*,
- sizes: MixedValues = None,
- interchange: MixedValues = None,
+ sizes: MixedValues | DynamicIndexList | None = None,
+ interchange: MixedValues | None = None,
loc=None,
ip=None,
):
@@ -573,8 +573,8 @@ def __init__(
loop_types_or_target: Union[Type, List[Type], Operation, Value],
target_or_none: Optional[Union[Operation, Value, OpView]] = None,
*,
- sizes: MixedValues = None,
- interchange: MixedValues = None,
+ sizes: MixedValues | DynamicIndexList | None = None,
+ interchange: MixedValues | None = None,
loc=None,
ip=None,
):
More information about the Mlir-commits
mailing list