mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add __all__ to most modules beginning with 'q', 'r' and 's' (#7364)
This commit is contained in:
@@ -6,6 +6,40 @@ from ssl import SSLContext
|
||||
from types import TracebackType
|
||||
from typing import Any, Pattern, Protocol, Sequence, Union, overload
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
__all__ = [
|
||||
"SMTPException",
|
||||
"SMTPNotSupportedError",
|
||||
"SMTPServerDisconnected",
|
||||
"SMTPResponseException",
|
||||
"SMTPSenderRefused",
|
||||
"SMTPRecipientsRefused",
|
||||
"SMTPDataError",
|
||||
"SMTPConnectError",
|
||||
"SMTPHeloError",
|
||||
"SMTPAuthenticationError",
|
||||
"quoteaddr",
|
||||
"quotedata",
|
||||
"SMTP",
|
||||
"SMTP_SSL",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"SMTPException",
|
||||
"SMTPServerDisconnected",
|
||||
"SMTPResponseException",
|
||||
"SMTPSenderRefused",
|
||||
"SMTPRecipientsRefused",
|
||||
"SMTPDataError",
|
||||
"SMTPConnectError",
|
||||
"SMTPHeloError",
|
||||
"SMTPAuthenticationError",
|
||||
"quoteaddr",
|
||||
"quotedata",
|
||||
"SMTP",
|
||||
"SMTP_SSL",
|
||||
]
|
||||
|
||||
_Reply = tuple[int, bytes]
|
||||
_SendErrs = dict[str, _Reply]
|
||||
# Should match source_address for socket.create_connection
|
||||
|
||||
Reference in New Issue
Block a user