Skip to content

Commit

Permalink
Update src/ralph/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Wilfried <[email protected]>
  • Loading branch information
SergioSim and wilbrdt authored Nov 24, 2023
1 parent e609c67 commit 67b0601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ralph/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def async_parse_dict_to_bytes(
def iter_by_batch(iterable: Iterable, n: int) -> Iterable[list]:
"""Batch `iterable` into lists of length `n`. The last batch may be less than `n`.
Taken from itertools.batched introduced in python 3.12
Inspired by itertools.batched introduced in python 3.12
"""
if n < 1:
raise ValueError("n must be at least one")
Expand Down

0 comments on commit 67b0601

Please sign in to comment.