Skip to content

Commit 2506988

Browse files
refactor: Push tuple instead of list slice
1 parent 3a4623c commit 2506988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thread/utils/algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def chunk_split(dataset_length: int, number_of_chunks: int) -> List[Tuple[int, i
4646
chunk_length = chunk_count + int(overflow > 0)
4747
b = i + chunk_length
4848

49-
split.append(dataset[i:b])
49+
split.append((i, b))
5050
overflow -= 1
5151
i = b
5252

0 commit comments

Comments
 (0)