Skip to content

Commit 8a1599e

Browse files
Treat (0, None) as fixed dim if is the first dimension
1 parent 5494898 commit 8a1599e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merlin/dtypes/shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __post_init__(self):
153153
if self.dims is not None:
154154
new_dims = []
155155
for i, dim in enumerate(self.dims):
156-
if i == 0 and dim is None:
156+
if i == 0 and dim is None or dim == (0, None):
157157
dim = -1
158158
new_dim = Dimension(dim)
159159
new_dims.append(new_dim)

0 commit comments

Comments
 (0)