From 01fb400c5450e0c6ac7e512bc8bd404648d089f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Tue, 17 Jan 2023 14:20:43 +0100 Subject: [PATCH] Convert another comment into a proper 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 693cee452..d9aa04e32 100644 --- a/spacy/training/batchers.py +++ b/spacy/training/batchers.py @@ -149,7 +149,7 @@ def minibatch_by_words( item. 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) target_size = next(size_)