Skip to content

Commit

Permalink
Add missing TCP_CONNECTION_INFO to socket module (#10402)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 4, 2023
1 parent 614aa1a commit 702226e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
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

0 comments on commit 702226e

Please sign in to comment.