mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user