Skip to content

Commit ff2b241

Browse files
authored
Merge pull request #13 from bdowning/safe-array-insert
Listify input to chunked
2 parents 05a9325 + 31fc288 commit ff2b241

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.4.0-alpha-2
2+
current_version = 0.4.0-alpha-3
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*)-(?P<build>\d+))?
44
serialize =
55
{major}.{minor}.{patch}-{release}-{build}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sql-athame"
3-
version = "0.4.0-alpha-2"
3+
version = "0.4.0-alpha-3"
44
description = "Python tool for slicing and dicing SQL"
55
authors = ["Brian Downing <bdowning@lavos.net>"]
66
license = "MIT"

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)