mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-14 18:22:27 +03:00
Add back modified type: ignore
This commit is contained in:
parent
e218873d04
commit
90d77fd70f
|
@ -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.extend(range(spans_i[j, 0], spans_i[j, 1]))
|
||||
indices.extend(range(spans_i[j, 0], spans_i[j, 1])) # type: ignore[arg-type, call-overload]
|
||||
offset += length
|
||||
return ops.asarray1i(indices)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user