Skip to content

Commit

Permalink
allow lists to UItuple
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Dec 25, 2024
1 parent a46444f commit 9a32083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/lenskit/data/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create(cls, x: UITuple[T] | tuple[T, T] | T) -> UITuple[T]:
"""
if isinstance(x, UITuple):
return cast(UITuple[T], x)
elif isinstance(x, tuple):
elif isinstance(x, (tuple, list)):
u, i = cast(tuple[T, T], x)
return UITuple(u, i)
else:
Expand Down

0 comments on commit 9a32083

Please sign in to comment.