Skip to content

Commit cb0f61c

Browse files
committed
Listify input to chunked
1 parent 05a9325 commit cb0f61c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sql_athame/dataclasses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,5 +595,7 @@ async def replace_multiple_reporting_differences(
595595

596596

597597
def chunked(lst, n):
598+
if type(lst) is not list:
599+
lst = list(lst)
598600
for i in range(0, len(lst), n):
599601
yield lst[i : i + n]

0 commit comments

Comments
 (0)