From d3c4cb105acac79e50cdaf72171dd455575c536c Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Mon, 25 Jul 2022 16:37:21 -0400 Subject: [PATCH] Add missing `__version__` to `chardet.__init__` (#8401) --- stubs/chardet/chardet/__init__.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]: ...