mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add missing __version__ to chardet.__init__ (#8401)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user