mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
A new shade of Black (#11362)
This commit is contained in:
@@ -52,6 +52,7 @@ if sys.platform != "linux" and sys.platform != "win32":
|
||||
data: Any = ...,
|
||||
udata: Any = ...,
|
||||
) -> None: ...
|
||||
|
||||
# BSD only
|
||||
@final
|
||||
class kqueue:
|
||||
@@ -64,6 +65,7 @@ if sys.platform != "linux" and sys.platform != "win32":
|
||||
def fileno(self) -> int: ...
|
||||
@classmethod
|
||||
def fromfd(cls, __fd: FileDescriptorLike) -> kqueue: ...
|
||||
|
||||
KQ_EV_ADD: int
|
||||
KQ_EV_CLEAR: int
|
||||
KQ_EV_DELETE: int
|
||||
@@ -123,6 +125,7 @@ if sys.platform == "linux":
|
||||
def poll(self, timeout: float | None = None, maxevents: int = -1) -> list[tuple[int, int]]: ...
|
||||
@classmethod
|
||||
def fromfd(cls, __fd: FileDescriptorLike) -> epoll: ...
|
||||
|
||||
EPOLLERR: int
|
||||
EPOLLEXCLUSIVE: int
|
||||
EPOLLET: int
|
||||
|
||||
Reference in New Issue
Block a user