massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / email / header.pyi
1 # Stubs for email.header (Python 3.4)\r
2 \r
3 from typing import Union, Optional, Any, List, Tuple\r
4 from email.charset import Charset\r
5 \r
6 class Header:\r
7     def __init__(self, s: Union[bytes, str, None] = ...,\r
8                  charset: Union[Charset, str, None] = ...,\r
9                  maxlinelen: Optional[int] = ...,\r
10                  header_name: Optional[str] = ..., continuation_ws: str = ...,\r
11                  errors: str = ...) -> None: ...\r
12     def append(self, s: Union[bytes, str],\r
13                charset: Union[Charset, str, None] = ...,\r
14                errors: str = ...) -> None: ...\r
15     def encode(self, splitchars: str = ..., maxlinelen: Optional[int] = ...,\r
16                linesep: str = ...) -> str: ...\r
17     def __str__(self) -> str: ...\r
18     def __eq__(self, other: Any) -> bool: ...\r
19     def __ne__(self, other: Any) -> bool: ...\r
20 \r
21 def decode_header(header: Union[Header, str]) -> List[Tuple[bytes, Optional[str]]]: ...\r
22 def make_header(decoded_seq: List[Tuple[bytes, Optional[str]]],\r
23                 maxlinelen: Optional[int] =...,\r
24                 header_name: Optional[str] = ...,\r
25                 continuation_ws: str = ...) -> Header: ...\r