diff --git a/lenskit/lenskit/data/types.py b/lenskit/lenskit/data/types.py index 6ddcd86ca..566c64445 100644 --- a/lenskit/lenskit/data/types.py +++ b/lenskit/lenskit/data/types.py @@ -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: