Fix mypy issue

This commit is contained in:
richard@explosion.ai 2023-02-01 18:31:30 +01:00
parent befacb589c
commit 5d3cdd6a2f

View File

@ -1,5 +1,14 @@
from typing import List, Optional
from thinc.types import Ints2d
from thinc.api import Model
from ..tokens import Doc
def RichFeatureExtractor(
*,
case_sensitive: bool,
pref_lengths: Optional[List[int]] = None,
suff_lengths: Optional[List[int]] = None,
) -> Model[List[Doc], List[Ints2d]]: ...
def get_character_combination_hashes(
*,
doc: Doc,