chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
from typing import Any, List
def split(items: List[Any], chunk_size: int):
"""Splits provided list into chunks of given size"""
assert chunk_size > 0, "Chunk size has to be > 0"
for i in range(0, len(items), chunk_size):
yield items[i : i + chunk_size]