mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Fix sigtimedwait and sigwaitinfo signature (#10803)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
_?curses.color_pair
|
||||
signal.sigtimedwait
|
||||
signal.sigwaitinfo
|
||||
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
_?curses.color_pair
|
||||
signal.sigtimedwait
|
||||
signal.sigwaitinfo
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user