Various py311 removals (#7836)

This commit is contained in:
Alex Waygood
2022-05-17 01:28:13 +01:00
committed by GitHub
parent 87abd8a39f
commit e9526faf40
7 changed files with 25 additions and 16 deletions

View File

@@ -14,7 +14,6 @@ _CMSG: TypeAlias = tuple[int, int, bytes]
class TransportSocket:
def __init__(self, sock: socket.socket) -> None: ...
def _na(self, what: str) -> None: ...
@property
def family(self) -> int: ...
@property
@@ -41,6 +40,7 @@ class TransportSocket:
def gettimeout(self) -> float | None: ...
def setblocking(self, flag: bool) -> None: ...
if sys.version_info < (3, 11):
def _na(self, what: str) -> None: ...
def accept(self) -> tuple[socket.socket, _RetAddress]: ...
def connect(self, address: _Address | bytes) -> None: ...
def connect_ex(self, address: _Address | bytes) -> int: ...