mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +03:00
fix(phrasematcher.pyi): change type annotation of docs
in add()
to List[Doc]
(#10235)
https://github.com/explosion/spaCy/issues/10234
This commit is contained in:
parent
a9ee5bff98
commit
6477dafac2
|
@ -14,7 +14,7 @@ class PhraseMatcher:
|
||||||
def add(
|
def add(
|
||||||
self,
|
self,
|
||||||
key: str,
|
key: str,
|
||||||
docs: List[List[Dict[str, Any]]],
|
docs: List[Doc],
|
||||||
*,
|
*,
|
||||||
on_match: Optional[
|
on_match: Optional[
|
||||||
Callable[[Matcher, Doc, int, List[Tuple[Any, ...]]], Any]
|
Callable[[Matcher, Doc, int, List[Tuple[Any, ...]]], Any]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user