diff --git a/stubs/chardet/chardet/__init__.pyi b/stubs/chardet/chardet/__init__.pyi index 7f9dd122c..f9537b616 100644 --- a/stubs/chardet/chardet/__init__.pyi +++ b/stubs/chardet/chardet/__init__.pyi @@ -1,6 +1,7 @@ import sys from .universaldetector import UniversalDetector as UniversalDetector, _FinalResultType, _IntermediateResultType +from .version import VERSION as VERSION, __version__ as __version__ if sys.version_info >= (3, 8): from typing import TypedDict @@ -22,7 +23,5 @@ class _SMModelType(TypedDict): char_len_table: tuple[int, ...] name: str -VERSION: list[str] - def detect(byte_str: bytes | bytearray) -> _FinalResultType: ... def detect_all(byte_str: bytes | bytearray, ignore_threshold: bool = ...) -> list[_IntermediateResultType]: ...