mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
This reverts commit 7e05d47b81.
See discussion at https://github.com/python/typeshed/pull/1080
28 lines
736 B
Python
28 lines
736 B
Python
# Stubs for select
|
|
|
|
# NOTE: These are incomplete!
|
|
|
|
from typing import Any, Tuple, List, Sequence
|
|
|
|
class error(Exception): ...
|
|
|
|
POLLIN = 0
|
|
POLLPRI = 0
|
|
POLLOUT = 0
|
|
POLLERR = 0
|
|
POLLHUP = 0
|
|
POLLNVAL = 0
|
|
|
|
class poll:
|
|
def __init__(self) -> None: ...
|
|
def register(self, fd: Any,
|
|
eventmask: int = ...) -> None: ...
|
|
def modify(self, fd: Any, eventmask: int) -> None: ...
|
|
def unregister(self, fd: Any) -> None: ...
|
|
def poll(self, timeout: int = ...) -> List[Tuple[int, int]]: ...
|
|
|
|
def select(rlist: Sequence, wlist: Sequence, xlist: Sequence,
|
|
timeout: float = ...) -> Tuple[List[Any],
|
|
List[Any],
|
|
List[Any]]: ...
|