From 97d3cea9d1d6fc68c9327440312036134a3973b6 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 16 Mar 2018 00:01:23 +0100 Subject: [PATCH] Add module constants for smtplib (#1962) --- stdlib/3/smtplib.pyi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stdlib/3/smtplib.pyi b/stdlib/3/smtplib.pyi index 982238229..2397448d4 100644 --- a/stdlib/3/smtplib.pyi +++ b/stdlib/3/smtplib.pyi @@ -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): ...