From 6477dafac248b5a9bf35666e07ce54936a207486 Mon Sep 17 00:00:00 2001 From: Ramon Ziai Date: Tue, 8 Feb 2022 13:37:27 +0100 Subject: [PATCH] fix(phrasematcher.pyi): change type annotation of `docs` in `add()` to `List[Doc]` (#10235) https://github.com/explosion/spaCy/issues/10234 --- spacy/matcher/phrasematcher.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/matcher/phrasematcher.pyi b/spacy/matcher/phrasematcher.pyi index 82a194835..68e3386e4 100644 --- a/spacy/matcher/phrasematcher.pyi +++ b/spacy/matcher/phrasematcher.pyi @@ -14,7 +14,7 @@ class PhraseMatcher: def add( self, key: str, - docs: List[List[Dict[str, Any]]], + docs: List[Doc], *, on_match: Optional[ Callable[[Matcher, Doc, int, List[Tuple[Any, ...]]], Any]