Fix typing and minor issues
This commit is contained in:
parent
2db2253578
commit
72ab627a34
54 changed files with 635 additions and 589 deletions
|
|
@ -3,7 +3,7 @@ from typing import Iterable, List, TypeVar
|
|||
T = TypeVar("T")
|
||||
|
||||
|
||||
def chunk(values: Iterable[T], chunk_size: int) -> Iterable[T]:
|
||||
def chunk(values: Iterable[T], chunk_size: int) -> Iterable[List[T]]:
|
||||
assert chunk_size >= 1
|
||||
|
||||
result: List[T] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue