Fix type for fuzzy_compare to remove Optional

This commit is contained in:
Adriane Boyd 2023-01-09 13:11:26 +01:00
parent 8ee6551348
commit 0d60744996

View File

@ -6,7 +6,7 @@ from ..tokens import Doc, Span
class Matcher:
def __init__(self, vocab: Vocab, validate: bool = ...,
fuzzy_compare: Optional[Callable[[str, str, int], bool]] = ...) -> None: ...
fuzzy_compare: Callable[[str, str, int], bool] = ...) -> None: ...
def __reduce__(self) -> Any: ...
def __len__(self) -> int: ...
def __contains__(self, key: str) -> bool: ...