mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Simplify __all__ for modules beginning with 'm' to 't' (#8028)
This commit is contained in:
@@ -8,39 +8,24 @@ from types import TracebackType
|
||||
from typing import Any, Pattern, Protocol, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"SMTPException",
|
||||
"SMTPServerDisconnected",
|
||||
"SMTPResponseException",
|
||||
"SMTPSenderRefused",
|
||||
"SMTPRecipientsRefused",
|
||||
"SMTPDataError",
|
||||
"SMTPConnectError",
|
||||
"SMTPHeloError",
|
||||
"SMTPAuthenticationError",
|
||||
"quoteaddr",
|
||||
"quotedata",
|
||||
"SMTP",
|
||||
"SMTP_SSL",
|
||||
]
|
||||
|
||||
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",
|
||||
]
|
||||
__all__ += ["SMTPNotSupportedError"]
|
||||
|
||||
_Reply: TypeAlias = tuple[int, bytes]
|
||||
_SendErrs: TypeAlias = dict[str, _Reply]
|
||||
|
||||
Reference in New Issue
Block a user