mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-24 03:44:26 +03:00
mypy fix
This commit is contained in:
parent
0c7c503a90
commit
31c7ce5072
|
@ -57,7 +57,7 @@ def _get_span_indices(ops, spans: Ragged, lengths: Ints1d) -> Ints1d:
|
|||
for i, length in enumerate(lengths):
|
||||
spans_i = spans[i].dataXd + offset
|
||||
for j in range(spans_i.shape[0]):
|
||||
indices += list(range(spans_i[j, 0], spans_i[j, 1])) # type: ignore[call-overload, index]
|
||||
indices += list(range(spans_i[j, 0], spans_i[j, 1])) # type: ignore
|
||||
offset += length
|
||||
return ops.xp.asarray(indices, dtype="int")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user