stdlib: Run stubdefaulter on Linux for 3.9 (#9663)

This commit is contained in:
Jelle Zijlstra
2023-02-02 16:39:22 -08:00
committed by GitHub
parent 100cd62373
commit 5b24c7bb41
8 changed files with 39 additions and 36 deletions

View File

@@ -109,9 +109,9 @@ if sys.platform == "linux":
def __enter__(self: Self) -> Self: ...
def __exit__(
self,
__exc_type: type[BaseException] | None = ...,
__exc_type: type[BaseException] | None = None,
__exc_val: BaseException | None = ...,
__exc_tb: TracebackType | None = ...,
__exc_tb: TracebackType | None = None,
) -> None: ...
def close(self) -> None: ...
closed: bool
@@ -119,7 +119,7 @@ if sys.platform == "linux":
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 = ..., maxevents: int = ...) -> list[tuple[int, int]]: ...
def poll(self, timeout: float | None = None, maxevents: int = -1) -> list[tuple[int, int]]: ...
@classmethod
def fromfd(cls, __fd: FileDescriptorLike) -> epoll: ...
EPOLLERR: int