Add missing __version__ to chardet.__init__ (#8401)

This commit is contained in:
Kevin Kirsche
2022-07-25 16:37:21 -04:00
committed by GitHub
parent 0a31779909
commit d3c4cb105a

View File

@@ -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]: ...