Add email.charset.SHORTEST, QP, BASE64 to the stub for Python 2 (#2857)

Also mark Python 3 constants as undocumented.

Fixes #2830
This commit is contained in:
Vasily Zakharov
2019-03-11 22:41:19 +03:00
committed by Sebastian Rittau
parent 08555f80d1
commit e4e19d6e98
2 changed files with 7 additions and 3 deletions

View File

@@ -2,6 +2,10 @@ def add_charset(charset, header_enc=..., body_enc=..., output_charset=...) -> No
def add_alias(alias, canonical) -> None: ...
def add_codec(charset, codecname) -> None: ...
QP: int # undocumented
BASE64: int # undocumented
SHORTEST: int # undocumented
class Charset:
input_charset = ...
header_encoding = ...

View File

@@ -2,9 +2,9 @@
from typing import List, Optional, Iterator, Any
QP: int
BASE64: int
SHORTEST: int
QP: int # undocumented
BASE64: int # undocumented
SHORTEST: int # undocumented
class Charset:
input_charset = ... # type: str