Use TypeAlias for type aliases where possible, part II (#7667)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-04-20 20:02:47 +01:00
1 parent c653be73b8
commit b093c90a94
41 files changed
+91 -90

No files matched your search

+2 -1
View File
@@ -3,10 +3,11 @@ from io import BytesIO
from logging import Logger
from socket import socket
from typing import Any
from typing_extensions import TypeAlias
from . import compat as compat, utilities as utilities
_socket = socket
_socket: TypeAlias = socket
socket_map: Mapping[int, socket]
map: Mapping[int, socket]