Fix sigtimedwait and sigwaitinfo signature (#10803)

This commit is contained in:
Nikita Sobolev
2023-09-29 22:38:14 +03:00
committed by GitHub
parent 1ac5b7b1ac
commit 7cf1fed75d
4 changed files with 6 additions and 8 deletions

View File

@@ -170,8 +170,12 @@ else:
@property
def si_band(self) -> int: ...
def sigtimedwait(sigset: Iterable[int], timeout: float) -> struct_siginfo | None: ...
def sigwaitinfo(sigset: Iterable[int]) -> struct_siginfo: ...
if sys.version_info >= (3, 10):
def sigtimedwait(__sigset: Iterable[int], __timeout: float) -> struct_siginfo | None: ...
def sigwaitinfo(__sigset: Iterable[int]) -> struct_siginfo: ...
else:
def sigtimedwait(sigset: Iterable[int], timeout: float) -> struct_siginfo | None: ...
def sigwaitinfo(sigset: Iterable[int]) -> struct_siginfo: ...
if sys.version_info >= (3, 8):
def strsignal(__signalnum: _SIGNUM) -> str | None: ...

View File

@@ -1,6 +1,4 @@
_?curses.color_pair
signal.sigtimedwait
signal.sigwaitinfo
# ==========
# Allowlist entries that cannot or should not be fixed

View File

@@ -1,3 +1 @@
_?curses.color_pair
signal.sigtimedwait
signal.sigwaitinfo

View File

@@ -1,7 +1,5 @@
_?curses.color_pair
_posixsubprocess.fork_exec
signal.sigtimedwait
signal.sigwaitinfo
# Exists on some Linux builds, and is documented,
# but is unavailable in Github Actions on Linux with Python 3.12