massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / chardet / chardet / __init__.pyi
1 import sys
2 from typing import Any, Tuple
3
4 from .universaldetector import UniversalDetector as UniversalDetector
5
6 def __getattr__(name: str) -> Any: ...  # incomplete
7
8 if sys.version_info >= (3, 8):
9     from typing import TypedDict
10 else:
11     from typing_extensions import TypedDict
12
13 class _LangModelType(TypedDict):
14     char_to_order_map: Tuple[int, ...]
15     precedence_matrix: Tuple[int, ...]
16     typical_positive_ratio: float
17     keep_english_letter: bool
18     charset_name: str
19     language: str
20
21 class _SMModelType(TypedDict):
22     class_table: Tuple[int, ...]
23     class_factor: int
24     state_table: Tuple[int, ...]
25     char_len_table: Tuple[int, ...]
26     name: str