mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user