Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stdlib/socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ if sys.version_info >= (3, 12):
ETHERTYPE_IPV6 as ETHERTYPE_IPV6,
ETHERTYPE_VLAN as ETHERTYPE_VLAN,
)
if sys.version_info >= (3, 11) and sys.platform == "darwin":
from _socket import TCP_CONNECTION_INFO as TCP_CONNECTION_INFO

# Re-exported from errno
EBADF: int
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/darwin-py311.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
_?curses.color_pair
xxlimited.Xxo.x_exports

# Exists at runtime, missing from stub
socket.TCP_CONNECTION_INFO

(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ posix.PRIO_DARWIN_BG
posix.PRIO_DARWIN_NONUI
posix.PRIO_DARWIN_PROCESS
posix.PRIO_DARWIN_THREAD
socket.TCP_CONNECTION_INFO
syslog.LOG_MASK
syslog.LOG_UPTO
syslog.setlogmask
Expand Down