From d70fad09dd7012bd43304e1c67b7599558b90c39 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Tue, 3 Dec 2024 21:59:39 -0800 Subject: [PATCH] selectors.KqueueSelector is documented as BSD-only (#13183) --- stdlib/@tests/stubtest_allowlists/linux.txt | 7 ------- stdlib/selectors.pyi | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/linux.txt b/stdlib/@tests/stubtest_allowlists/linux.txt index d17e0fc60..d82c0a7dc 100644 --- a/stdlib/@tests/stubtest_allowlists/linux.txt +++ b/stdlib/@tests/stubtest_allowlists/linux.txt @@ -1,10 +1,3 @@ -# ============================================ -# TODO: Allowlist entries that should be fixed -# ============================================ - -selectors.KqueueSelector - - # ========================================== # Modules that do not exist on Linux systems # ========================================== diff --git a/stdlib/selectors.pyi b/stdlib/selectors.pyi index a857d0e24..7dad0c13b 100644 --- a/stdlib/selectors.pyi +++ b/stdlib/selectors.pyi @@ -53,7 +53,7 @@ if sys.platform == "linux": class DevpollSelector(_PollLikeSelector): def fileno(self) -> int: ... -if sys.platform != "win32": +if sys.platform != "win32" and sys.platform != "linux": class KqueueSelector(_BaseSelectorImpl): def fileno(self) -> int: ... def select(self, timeout: float | None = None) -> list[tuple[SelectorKey, _EventMask]]: ...