Skip to content

Commit 702226e

Browse files
authored
Add missing TCP_CONNECTION_INFO to socket module (#10402)
1 parent 614aa1a commit 702226e

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

stdlib/socket.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ if sys.version_info >= (3, 12):
468468
ETHERTYPE_IPV6 as ETHERTYPE_IPV6,
469469
ETHERTYPE_VLAN as ETHERTYPE_VLAN,
470470
)
471+
if sys.version_info >= (3, 11) and sys.platform == "darwin":
472+
from _socket import TCP_CONNECTION_INFO as TCP_CONNECTION_INFO
471473

472474
# Re-exported from errno
473475
EBADF: int

tests/stubtest_allowlists/darwin-py311.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
_?curses.color_pair
22
xxlimited.Xxo.x_exports
33

4-
# Exists at runtime, missing from stub
5-
socket.TCP_CONNECTION_INFO
6-
74
(dbm.gnu)?
85
(locale.bind_textdomain_codeset)?
96
(locale.bindtextdomain)?

tests/stubtest_allowlists/darwin-py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ posix.PRIO_DARWIN_BG
1313
posix.PRIO_DARWIN_NONUI
1414
posix.PRIO_DARWIN_PROCESS
1515
posix.PRIO_DARWIN_THREAD
16-
socket.TCP_CONNECTION_INFO
1716
syslog.LOG_MASK
1817
syslog.LOG_UPTO
1918
syslog.setlogmask

0 commit comments

Comments
 (0)