Fix email.utils parseaddr and formataddr to accept Optional[str] (#1626)

This commit is contained in:
Neil Pilgrim
2017-09-26 14:10:35 -07:00
committed by Matthias Kramm
parent b8f7ba8e8a
commit ffe2bee7a7

View File

@@ -9,8 +9,8 @@ _PDTZ = Tuple[int, int, int, int, int, int, int, int, int, Optional[int]]
def quote(str: str) -> str: ...
def unquote(str: str) -> str: ...
def parseaddr(address: str) -> Tuple[str, str]: ...
def formataddr(pair: Tuple[str, str],
def parseaddr(address: Optional[str]) -> Tuple[str, str]: ...
def formataddr(pair: Tuple[Optional[str], str],
charset: Union[str, Charset] = ...) -> str: ...
def getaddresses(fieldvalues: List[str]) -> List[Tuple[str, str]]: ...
def parsedate(date: str) -> Optional[Tuple[int, int, int, int, int, int, int, int, int]]: ...