Skip to content

Commit

Permalink
Shape refactor: Fix dict type
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Dec 22, 2024
1 parent 73ab07d commit 9a2c78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phiml/math/_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a2c78a

Please sign in to comment.