FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[pre-commit.ci] auto fixes from pre-commit.com hooks · python/typeshed@661577d · GitHub

Repository navigation

Commit 661577d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent e2c03d1 commit 661577d

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

‎stdlib/_socket.pyi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ def if_nametoindex(oname: str, /) -> int: ...
834834

835835
if sys.version_info >= (3, 14):
836836
def if_indextoname(if_index: int, /) -> str: ...
837+
837838
else:
838839
def if_indextoname(index: int, /) -> str: ...
839840

‎stdlib/socket.pyi‎

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,30 +1030,49 @@ if sys.version_info >= (3, 14):
10301030

10311031
if sys.platform == "win32":
10321032
from _socket import (
1033-
IPV6_RECVERR as IPV6_RECVERR,
10341033
IP_RECVERR as IP_RECVERR,
1035-
SOL_RFCOMM as SOL_RFCOMM,
1034+
IPV6_RECVERR as IPV6_RECVERR,
10361035
SO_BTH_ENCRYPT as SO_BTH_ENCRYPT,
10371036
SO_BTH_MTU as SO_BTH_MTU,
10381037
SO_BTH_MTU_MAX as SO_BTH_MTU_MAX,
10391038
SO_BTH_MTU_MIN as SO_BTH_MTU_MIN,
10401039
SO_ORIGINAL_DST as SO_ORIGINAL_DST,
1040+
SOL_RFCOMM as SOL_RFCOMM,
10411041
TCP_QUICKACK as TCP_QUICKACK,
10421042
)
10431043

1044-
__all__ += ['IPV6_RECVERR', 'IP_RECVERR', 'SOL_RFCOMM', 'SO_BTH_ENCRYPT', 'SO_BTH_MTU', 'SO_BTH_MTU_MAX', 'SO_BTH_MTU_MIN', 'SO_ORIGINAL_DST', 'TCP_QUICKACK']
1044+
__all__ += [
1045+
"IPV6_RECVERR",
1046+
"IP_RECVERR",
1047+
"SOL_RFCOMM",
1048+
"SO_BTH_ENCRYPT",
1049+
"SO_BTH_MTU",
1050+
"SO_BTH_MTU_MAX",
1051+
"SO_BTH_MTU_MIN",
1052+
"SO_ORIGINAL_DST",
1053+
"TCP_QUICKACK",
1054+
]
10451055

10461056
if sys.platform == "linux":
10471057
from _socket import (
10481058
CAN_RAW_ERR_FILTER as CAN_RAW_ERR_FILTER,
1049-
IPV6_RECVERR as IPV6_RECVERR,
10501059
IP_FREEBIND as IP_FREEBIND,
10511060
IP_RECVERR as IP_RECVERR,
10521061
IP_RECVORIGDSTADDR as IP_RECVORIGDSTADDR,
1062+
IPV6_RECVERR as IPV6_RECVERR,
10531063
SO_ORIGINAL_DST as SO_ORIGINAL_DST,
10541064
VMADDR_CID_LOCAL as VMADDR_CID_LOCAL,
10551065
)
1056-
__all__ += ['CAN_RAW_ERR_FILTER', 'IPV6_RECVERR', 'IP_FREEBIND', 'IP_RECVERR', 'IP_RECVORIGDSTADDR', 'SO_ORIGINAL_DST', 'VMADDR_CID_LOCAL']
1066+
1067+
__all__ += [
1068+
"CAN_RAW_ERR_FILTER",
1069+
"IPV6_RECVERR",
1070+
"IP_FREEBIND",
1071+
"IP_RECVERR",
1072+
"IP_RECVORIGDSTADDR",
1073+
"SO_ORIGINAL_DST",
1074+
"VMADDR_CID_LOCAL",
1075+
]
10571076

10581077
# Re-exported from errno
10591078
EBADF: int

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL