1 from typing import Any, Iterator
4 BASE64: int # undocumented
5 SHORTEST: int # undocumented
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: ...
25 charset: str, header_enc: int | None = ..., body_enc: int | None = ..., output_charset: str | None = ...
27 def add_alias(alias: str, canonical: str) -> None: ...
28 def add_codec(charset: str, codecname: str) -> None: ...