Skip to content

Commit 766090d

Browse files
fix: _length as a function not supported for UnlikeSequences
1 parent cd8c861 commit 766090d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thread/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def __init__(
512512
'`_get_value` must be set if `dataset` does not support `__getitem__`'
513513
)
514514

515-
length = _length
515+
length = _length(dataset) if callable(_length) else _length
516516
get_value = _get_value
517517

518518
if not isinstance(length, int):

0 commit comments

Comments
 (0)