Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -176,8 +176,7 @@ MSG_CTRUNC: int
MSG_DONTROUTE: int
if sys.platform != "darwin":
if sys.platform != "win32" or sys.version_info >= (3, 7):
MSG_ERRQUEUE: int
MSG_ERRQUEUE: int
MSG_OOB: int
MSG_PEEK: int
@@ -218,15 +217,14 @@ if sys.platform == "linux" and sys.version_info >= (3, 11):
SO_INCOMING_CPU: int
TCP_FASTOPEN: int
TCP_KEEPCNT: int
TCP_KEEPINTVL: int
if sys.platform != "win32" or sys.version_info >= (3, 7):
TCP_KEEPINTVL: int
if sys.platform != "darwin":
TCP_KEEPIDLE: int
if sys.platform != "darwin":
TCP_KEEPIDLE: int
TCP_MAXSEG: int
TCP_NODELAY: int
if sys.version_info >= (3, 7) and sys.platform != "win32":
if sys.platform != "win32":
TCP_NOTSENT_LOWAT: int
if sys.version_info >= (3, 10) and sys.platform == "darwin":
TCP_KEEPALIVE: int
@@ -368,7 +366,7 @@ if sys.platform == "linux" and sys.version_info >= (3, 8):
CAN_BCM_RX_RTR_FRAME: int
CAN_BCM_CAN_FD_FRAME: int
if sys.platform == "linux" and sys.version_info >= (3, 7):
if sys.platform == "linux":
CAN_ISOTP: int
if sys.platform == "linux" and sys.version_info >= (3, 9):
@@ -491,7 +489,7 @@ if sys.platform == "linux":
ALG_SET_OP: int
ALG_SET_PUBKEY: int
if sys.platform == "linux" and sys.version_info >= (3, 7):
if sys.platform == "linux":
AF_VSOCK: int
IOCTL_VM_SOCKETS_GET_LOCAL_CID: int
VMADDR_CID_ANY: int
@@ -598,9 +596,7 @@ class socket:
def getsockopt(self, __level: int, __optname: int) -> int: ...
@overload
def getsockopt(self, __level: int, __optname: int, __buflen: int) -> bytes: ...
if sys.version_info >= (3, 7):
def getblocking(self) -> bool: ...
def getblocking(self) -> bool: ...
def gettimeout(self) -> float | None: ...
if sys.platform == "win32":
def ioctl(self, __control: int, __option: int | tuple[int, int, int] | bool) -> None: ...
@@ -650,9 +646,7 @@ SocketType = socket
# ----- Functions -----
if sys.version_info >= (3, 7):
def close(__fd: _FD) -> None: ...
def close(__fd: _FD) -> None: ...
def dup(__fd: _FD) -> int: ...
# the 5th tuple item is an address