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
3 changes: 3 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ select.poll # Actually a function; we have a class so it can be used as a type
(_?socket\.HCI_CHANNEL_RAW)?
(_?socket\.HCI_CHANNEL_USER)?
(_?socket\.HCI_DEV_NONE)?
(_?socket\.HCI_DATA_DIR)?
(_?socket\.HCI_FILTER)?
(_?socket\.HCI_TIME_STAMP)?
(_?socket\.L2CAP_LM)?
(_?socket\.L2CAP_LM_AUTH)?
(_?socket\.L2CAP_LM_ENCRYPT)?
Expand Down
2 changes: 1 addition & 1 deletion stdlib/_socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ if sys.platform != "darwin":
BDADDR_ANY: Final = "00:00:00:00:00:00"
BDADDR_LOCAL: Final = "00:00:00:FF:FF:FF"

if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
if sys.platform != "win32" and sys.platform != "darwin":
HCI_FILTER: Final[int] # not in NetBSD or DragonFlyBSD
HCI_TIME_STAMP: Final[int] # not in FreeBSD, NetBSD, or DragonFlyBSD
HCI_DATA_DIR: Final[int] # not in FreeBSD, NetBSD, or DragonFlyBSD
Expand Down
3 changes: 2 additions & 1 deletion stdlib/socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,10 @@ if sys.platform != "win32" and sys.platform != "darwin":
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
__all__ += ["BTPROTO_HCI", "BTPROTO_L2CAP", "BTPROTO_SCO"]

if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
if sys.platform != "win32" and sys.platform != "darwin":
from _socket import HCI_DATA_DIR as HCI_DATA_DIR, HCI_FILTER as HCI_FILTER, HCI_TIME_STAMP as HCI_TIME_STAMP

if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
__all__ += ["HCI_FILTER", "HCI_TIME_STAMP", "HCI_DATA_DIR"]

if sys.version_info >= (3, 11) and sys.platform != "linux" and sys.platform != "win32" and sys.platform != "darwin":
Expand Down
Loading