Skip to content

Commit

Permalink
Fix sigtimedwait and sigwaitinfo signature (#10803)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 29, 2023
1 parent 1ac5b7b commit 7cf1fed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 6 additions & 2 deletions stdlib/signal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/linux-py310.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
_?curses.color_pair
signal.sigtimedwait
signal.sigwaitinfo

# ==========
# Allowlist entries that cannot or should not be fixed
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/linux-py311.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
_?curses.color_pair
signal.sigtimedwait
signal.sigwaitinfo
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/linux-py312.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7cf1fed

Please sign in to comment.