massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / email / header.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/email/header.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/email/header.pyi
new file mode 100644 (file)
index 0000000..4bebd50
--- /dev/null
@@ -0,0 +1,26 @@
+from email.charset import Charset
+from typing import Any
+
+class Header:
+    def __init__(
+        self,
+        s: bytes | str | None = ...,
+        charset: Charset | str | None = ...,
+        maxlinelen: int | None = ...,
+        header_name: str | None = ...,
+        continuation_ws: str = ...,
+        errors: str = ...,
+    ) -> None: ...
+    def append(self, s: bytes | str, charset: Charset | str | None = ..., errors: str = ...) -> None: ...
+    def encode(self, splitchars: str = ..., maxlinelen: int | None = ..., linesep: str = ...) -> str: ...
+    def __str__(self) -> str: ...
+    def __eq__(self, other: Any) -> bool: ...
+    def __ne__(self, other: Any) -> bool: ...
+
+def decode_header(header: Header | str) -> list[tuple[bytes, str | None]]: ...
+def make_header(
+    decoded_seq: list[tuple[bytes, str | None]],
+    maxlinelen: int | None = ...,
+    header_name: str | None = ...,
+    continuation_ws: str = ...,
+) -> Header: ...