mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-21 01:21:58 +03:00
Ignore mypy error.
This commit is contained in:
parent
79798c0181
commit
c187b13d2b
|
@ -139,7 +139,7 @@ def get_candidates(kb: KnowledgeBase, mention: Span) -> Iterable[Candidate]:
|
|||
RETURNS (Iterable[Candidate]): Identified candidates for specified mention.
|
||||
"""
|
||||
return next(
|
||||
next(get_candidates_v2(kb, iter([SpanGroup(mention.doc, spans=[mention])])))[0]
|
||||
next(get_candidates_v2(kb, iter([SpanGroup(mention.doc, spans=[mention])])))[0] # type: ignore[index]
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user