massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / email / charset.pyi
1 from typing import Any, Iterator
2
3 QP: int  # undocumented
4 BASE64: int  # undocumented
5 SHORTEST: int  # undocumented
6
7 class Charset:
8     input_charset: str
9     header_encoding: int
10     body_encoding: int
11     output_charset: str | None
12     input_codec: str | None
13     output_codec: str | None
14     def __init__(self, input_charset: str = ...) -> None: ...
15     def get_body_encoding(self) -> str: ...
16     def get_output_charset(self) -> str | None: ...
17     def header_encode(self, string: str) -> str: ...
18     def header_encode_lines(self, string: str, maxlengths: Iterator[int]) -> list[str]: ...
19     def body_encode(self, string: str) -> str: ...
20     def __str__(self) -> str: ...
21     def __eq__(self, other: Any) -> bool: ...
22     def __ne__(self, other: Any) -> bool: ...
23
24 def add_charset(
25     charset: str, header_enc: int | None = ..., body_enc: int | None = ..., output_charset: str | None = ...
26 ) -> None: ...
27 def add_alias(alias: str, canonical: str) -> None: ...
28 def add_codec(charset: str, codecname: str) -> None: ...