mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
select.poll is not available on windows (#13243)
This commit is contained in:
@@ -22,11 +22,14 @@ if sys.platform != "win32":
|
||||
POLLWRBAND: int
|
||||
POLLWRNORM: int
|
||||
|
||||
class poll:
|
||||
def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
|
||||
def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...
|
||||
def unregister(self, fd: FileDescriptorLike) -> None: ...
|
||||
def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]: ...
|
||||
# This is actually a function that returns an instance of a class.
|
||||
# The class is not accessible directly, and also calls itself select.poll.
|
||||
class poll:
|
||||
# default value is select.POLLIN | select.POLLPRI | select.POLLOUT
|
||||
def register(self, fd: FileDescriptorLike, eventmask: int = 7, /) -> None: ...
|
||||
def modify(self, fd: FileDescriptorLike, eventmask: int, /) -> None: ...
|
||||
def unregister(self, fd: FileDescriptorLike, /) -> None: ...
|
||||
def poll(self, timeout: float | None = None, /) -> list[tuple[int, int]]: ...
|
||||
|
||||
def select(
|
||||
rlist: Iterable[Any], wlist: Iterable[Any], xlist: Iterable[Any], timeout: float | None = None, /
|
||||
|
||||
Reference in New Issue
Block a user