Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood authored and GitHub committed 2021-12-28 11:31:43 +01:00
1 parent e6cb341d94
commit 8d5d2520ac
237 files changed
+966 -1069

No files matched your search

+4 -4
View File
@@ -4,12 +4,12 @@ from email.message import Message as _Message
from socket import socket
from ssl import SSLContext
from types import TracebackType
from typing import Any, Dict, Pattern, Protocol, Sequence, Tuple, Type, Union, overload
from typing import Any, Pattern, Protocol, Sequence, Type, Union, overload
_Reply = Tuple[int, bytes]
_SendErrs = Dict[str, _Reply]
_Reply = tuple[int, bytes]
_SendErrs = dict[str, _Reply]
# Should match source_address for socket.create_connection
_SourceAddress = Tuple[Union[bytearray, bytes, str], int]
_SourceAddress = tuple[Union[bytearray, bytes, str], int]
SMTP_PORT: int
SMTP_SSL_PORT: int