massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / email / charset.pyi
1 # Stubs for email.charset (Python 3.4)\r
2 \r
3 from typing import List, Optional, Iterator, Any\r
4 \r
5 class Charset:\r
6     input_charset = ...  # type: str\r
7     header_encoding = ...  # type: int\r
8     body_encoding = ...  # type: int\r
9     output_charset = ...  # type: Optional[str]\r
10     input_codec = ...  # type: Optional[str]\r
11     output_codec = ...  # type: Optional[str]\r
12     def __init__(self, input_charset: str = ...) -> None: ...\r
13     def get_body_encoding(self) -> str: ...\r
14     def get_output_charset(self) -> Optional[str]: ...\r
15     def header_encode(self, string: str) -> str: ...\r
16     def header_encode_lines(self, string: str,\r
17                             maxlengths: Iterator[int]) -> List[str]: ...\r
18     def body_encode(self, string: str) -> str: ...\r
19     def __str__(self) -> str: ...\r
20     def __eq__(self, other: Any) -> bool: ...\r
21     def __ne__(self, other: Any) -> bool: ...\r
22 \r
23 def add_charset(charset: Charset, header_enc: Optional[int] = ...,\r
24                 body_enc: Optional[int] = ...,\r
25                 output_charset: Optional[str] = ...) -> None: ...\r
26 def add_alias(alias: str, canonical: str) -> None: ...\r
27 def add_codec(charset: str, codecname: str) -> None: ...\r