mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Simplify __all__ for modules beginning with 'm' to 't' (#8028)
This commit is contained in:
1 parent
b88ea4a499
commit
591593c85f
15 files changed
+620
-1626
No files matched your search
+17
-32
@@ -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