massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / chardet / chardet / __init__.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/chardet/chardet/__init__.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/chardet/chardet/__init__.pyi
new file mode 100644 (file)
index 0000000..54e48f5
--- /dev/null
@@ -0,0 +1,26 @@
+import sys
+from typing import Any, Tuple
+
+from .universaldetector import UniversalDetector as UniversalDetector
+
+def __getattr__(name: str) -> Any: ...  # incomplete
+
+if sys.version_info >= (3, 8):
+    from typing import TypedDict
+else:
+    from typing_extensions import TypedDict
+
+class _LangModelType(TypedDict):
+    char_to_order_map: Tuple[int, ...]
+    precedence_matrix: Tuple[int, ...]
+    typical_positive_ratio: float
+    keep_english_letter: bool
+    charset_name: str
+    language: str
+
+class _SMModelType(TypedDict):
+    class_table: Tuple[int, ...]
+    class_factor: int
+    state_table: Tuple[int, ...]
+    char_len_table: Tuple[int, ...]
+    name: str