From 226f3caec694dd6e6b0a4f3210715941cb470a62 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 27 Jun 2026 19:38:52 +0200 Subject: [PATCH] [peewee] add typing for peewee.chunked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reference: https://docs.peewee-orm.com/en/latest/peewee/api.html#chunked > chunked(iterable, n) > Parameters * iterable – an iterable that is the source of the data to be chunked. > * n (int) – chunk size > > Returns a new iterable that yields n-length chunks of the source data. --- stubs/peewee/peewee.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/peewee/peewee.pyi b/stubs/peewee/peewee.pyi index 816b7a7e8d0c..058656b65b0c 100644 --- a/stubs/peewee/peewee.pyi +++ b/stubs/peewee/peewee.pyi @@ -45,7 +45,7 @@ IDENTIFIER_RE: Final[re.Pattern[str]] MODEL_BASE: Final = "_metaclass_helper_" def make_identifier(s: str) -> str: ... -def chunked(it, n) -> Generator[list[Incomplete]]: ... +def chunked(it: Iterable[_T], n: int) -> Generator[list[_T]]: ... class _callable_context_manager: def __call__(self, fn): ...