Add module constants for smtplib (#1962)

This commit is contained in:
Sebastian Rittau
2018-03-16 00:01:23 +01:00
committed by Jelle Zijlstra
parent eda3f36cb9
commit 97d3cea9d1

View File

@@ -1,10 +1,18 @@
from email.message import Message as _Message
from typing import (
Any, AnyStr, Dict, Generic, List, Optional, Sequence, Tuple, Union)
Any, AnyStr, Dict, Generic, List, Optional, Sequence, Tuple, Union,
Pattern)
_Reply = Tuple[int, bytes]
_SendErrs = Dict[str, _Reply]
SMTP_PORT: int
SMTP_SSL_PORT: int
CRLF: str
bCRLF: bytes
OLDSTYLE_AUTH: Pattern[str]
class SMTPException(OSError): ...
class SMTPServerDisconnected(SMTPException): ...