diff --git a/spacy/kb/kb.pyx b/spacy/kb/kb.pyx index a33e105fb..d368794b1 100644 --- a/spacy/kb/kb.pyx +++ b/spacy/kb/kb.pyx @@ -12,7 +12,6 @@ from .candidate import Candidate from .typedefs import CandidatesForMention - cdef class KnowledgeBase: """A `KnowledgeBase` instance stores unique identifiers for entities and their textual aliases, to support entity linking of named entities to diff --git a/spacy/kb/typedefs.pxd b/spacy/kb/typedefs.pxd index 4f7e887ad..4588b422e 100644 --- a/spacy/kb/typedefs.pxd +++ b/spacy/kb/typedefs.pxd @@ -1,4 +1,5 @@ -from .candidate import Candidate from typing import Iterable -ctypedef Iterable[Candidate] CandidatesForMention \ No newline at end of file +from .candidate import Candidate + +ctypedef Iterable[Candidate] CandidatesForMention