From 9a2c78a7c4866738ebceaca4adedd342a89a4ee4 Mon Sep 17 00:00:00 2001 From: Philipp Holl Date: Sun, 22 Dec 2024 17:02:44 +0100 Subject: [PATCH] Shape refactor: Fix dict type --- phiml/math/_shape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phiml/math/_shape.py b/phiml/math/_shape.py index 8b528b3..8e18bac 100644 --- a/phiml/math/_shape.py +++ b/phiml/math/_shape.py @@ -2341,7 +2341,7 @@ def pure_merge(*shapes: Shape, allow_varying_sizes: bool) -> Shape: return EMPTY_SHAPE if len(non_empty) == 1: return non_empty[0] - dims = dict[str, Dim]() + dims = {} for dim in all_dims: if dim.name not in dims: dims[dim.name] = dim