Add defaults for third-party stubs A-D (#9952)

This commit is contained in:
Alex Waygood
2023-03-27 16:49:58 +01:00
committed by GitHub
parent ce5f02fcdc
commit b9fedd20ce
186 changed files with 1829 additions and 1760 deletions

View File

@@ -18,4 +18,4 @@ class _LangModelType(TypedDict): # noqa: Y049
language: str
def detect(byte_str: bytes | bytearray) -> _FinalResultType: ...
def detect_all(byte_str: bytes | bytearray, ignore_threshold: bool = ...) -> list[_IntermediateResultType]: ...
def detect_all(byte_str: bytes | bytearray, ignore_threshold: bool = False) -> list[_IntermediateResultType]: ...

View File

@@ -23,7 +23,7 @@ class UniversalDetector:
done: bool
lang_filter: int
logger: Logger
def __init__(self, lang_filter: int = ...) -> None: ...
def __init__(self, lang_filter: int = 31) -> None: ...
def reset(self) -> None: ...
def feed(self, byte_str: bytes) -> None: ...
def close(self) -> _FinalResultType: ...