Skip to content

Commit d4ee138

Browse files
committed
[peewee] add typing for peewee.chunked
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.
1 parent 3c62217 commit d4ee138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/peewee/peewee.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ IDENTIFIER_RE: Final[re.Pattern[str]]
4545
MODEL_BASE: Final = "_metaclass_helper_"
4646

4747
def make_identifier(s: str) -> str: ...
48-
def chunked(it, n) -> Generator[list[Incomplete]]: ...
48+
def chunked(it: Iterable[_T], n: int) -> Generator[list[_T]]: ...
4949

5050
class _callable_context_manager:
5151
def __call__(self, fn): ...

0 commit comments

Comments
 (0)