mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 12:20:20 +03:00
Convert another comment into a proper type declaration
This commit is contained in:
parent
942dccb576
commit
01fb400c54
|
@ -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_)
|
||||
|
|
Loading…
Reference in New Issue
Block a user