massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / email / header.pyi
1 from email.charset import Charset
2 from typing import Any
3
4 class Header:
5     def __init__(
6         self,
7         s: bytes | str | None = ...,
8         charset: Charset | str | None = ...,
9         maxlinelen: int | None = ...,
10         header_name: str | None = ...,
11         continuation_ws: str = ...,
12         errors: str = ...,
13     ) -> None: ...
14     def append(self, s: bytes | str, charset: Charset | str | None = ..., errors: str = ...) -> None: ...
15     def encode(self, splitchars: str = ..., maxlinelen: int | None = ..., linesep: str = ...) -> str: ...
16     def __str__(self) -> str: ...
17     def __eq__(self, other: Any) -> bool: ...
18     def __ne__(self, other: Any) -> bool: ...
19
20 def decode_header(header: Header | str) -> list[tuple[bytes, str | None]]: ...
21 def make_header(
22     decoded_seq: list[tuple[bytes, str | None]],
23     maxlinelen: int | None = ...,
24     header_name: str | None = ...,
25     continuation_ws: str = ...,
26 ) -> Header: ...