massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / email / charset.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/email/charset.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/email/charset.pyi
new file mode 100644 (file)
index 0000000..4bf5d11
--- /dev/null
@@ -0,0 +1,28 @@
+from typing import Any, Iterator
+
+QP: int  # undocumented
+BASE64: int  # undocumented
+SHORTEST: int  # undocumented
+
+class Charset:
+    input_charset: str
+    header_encoding: int
+    body_encoding: int
+    output_charset: str | None
+    input_codec: str | None
+    output_codec: str | None
+    def __init__(self, input_charset: str = ...) -> None: ...
+    def get_body_encoding(self) -> str: ...
+    def get_output_charset(self) -> str | None: ...
+    def header_encode(self, string: str) -> str: ...
+    def header_encode_lines(self, string: str, maxlengths: Iterator[int]) -> list[str]: ...
+    def body_encode(self, string: str) -> str: ...
+    def __str__(self) -> str: ...
+    def __eq__(self, other: Any) -> bool: ...
+    def __ne__(self, other: Any) -> bool: ...
+
+def add_charset(
+    charset: str, header_enc: int | None = ..., body_enc: int | None = ..., output_charset: str | None = ...
+) -> None: ...
+def add_alias(alias: str, canonical: str) -> None: ...
+def add_codec(charset: str, codecname: str) -> None: ...