mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 00:13:46 +08:00
Fix email.utils parseaddr and formataddr to accept Optional[str] (#1626)
This commit is contained in:
1 parent
b8f7ba8e8a
commit
ffe2bee7a7
1 file changed
+2
-2
@@ -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]]: ...
|
||||
|
||||
Reference in new issue
Block a user