[Mlir-commits] [mlir] 8f15542 - [mlir:linalg:py] Undo unintentional type narrowing from #214539. (#217543)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Aug 20 04:23:52 PDT 2026


Author: Ingo Müller
Date: 2026-08-20T13:23:48+02:00
New Revision: 8f15542e25053a4b38efd5ab53f0aee1cd4892a0

URL: https://github.com/llvm/llvm-project/commit/8f15542e25053a4b38efd5ab53f0aee1cd4892a0
DIFF: https://github.com/llvm/llvm-project/commit/8f15542e25053a4b38efd5ab53f0aee1cd4892a0.diff

LOG: [mlir:linalg:py] Undo unintentional type narrowing from #214539. (#217543)

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>

Added: 
    

Modified: 
    mlir/python/mlir/dialects/transform/structured.py

Removed: 
    


################################################################################
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