From 942dccb576b809772dfcdf2259c197fbc5de79c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Tue, 17 Jan 2023 14:18:57 +0100 Subject: [PATCH] Use type declaration --- spacy/training/batchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/training/batchers.py b/spacy/training/batchers.py index e4138d736..693cee452 100644 --- a/spacy/training/batchers.py +++ b/spacy/training/batchers.py @@ -113,7 +113,7 @@ def minibatch_by_padded_size( The `len` function is used by default. """ if isinstance(size, int): - size_ = itertools.repeat(size) # type: Iterator[int] + size_: Iterator[int] = itertools.repeat(size) else: size_ = iter(size) for outer_batch in minibatch(seqs, size=buffer):