mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Add missing __version__ to chardet.__init__ (#8401)
This commit is contained in:
1 parent
0a31779909
commit
d3c4cb105a
1 file changed
+1
-2
@@ -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