Type annotation

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
Daniël de Kok 2023-04-20 19:59:29 +02:00 committed by GitHub
parent 8df2a3efdd
commit 90fcc3bdb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ def train_while_improving(
def subdivide_batch(
batch: Union[Iterable[Doc], Iterable[Example]], accumulate_gradient
batch: Union[Iterable[Doc], Iterable[Example]], accumulate_gradient: int
):
batch = list(batch)
if len(batch):