Skip to content

signal: improve version availability #4079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions stdlib/3/signal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ NSIG: int
class Signals(IntEnum):
SIGABRT: int
SIGALRM: int
SIGBREAK: int # Windows
if sys.platform == "win32":
SIGBREAK: int
SIGBUS: int
SIGCHLD: int
SIGCLD: int
if sys.platform != "darwin":
SIGCLD: int
SIGCONT: int
SIGEMT: int
SIGFPE: int
Expand All @@ -31,12 +33,14 @@ class Signals(IntEnum):
SIGIOT: int
SIGKILL: int
SIGPIPE: int
SIGPOLL: int
if sys.platform != "darwin":
SIGPOLL: int
SIGPWR: int
SIGPROF: int
SIGPWR: int
SIGQUIT: int
SIGRTMAX: int
SIGRTMIN: int
if sys.platform != "darwin":
SIGRTMAX: int
SIGRTMIN: int
SIGSEGV: int
SIGSTOP: int
SIGSYS: int
Expand Down Expand Up @@ -74,10 +78,12 @@ _HANDLER = Union[Callable[[Signals, FrameType], None], int, Handlers, None]

SIGABRT: Signals
SIGALRM: Signals
SIGBREAK: Signals # Windows
if sys.platform == "win32":
SIGBREAK: Signals
SIGBUS: Signals
SIGCHLD: Signals
SIGCLD: Signals
if sys.platform != "darwin":
SIGCLD: Signals
SIGCONT: Signals
SIGEMT: Signals
SIGFPE: Signals
Expand All @@ -89,12 +95,14 @@ SIGIO: Signals
SIGIOT: Signals
SIGKILL: Signals
SIGPIPE: Signals
SIGPOLL: Signals
if sys.platform != "darwin":
SIGPOLL: Signals
SIGPWR: Signals
SIGPROF: Signals
SIGPWR: Signals
SIGQUIT: Signals
SIGRTMAX: Signals
SIGRTMIN: Signals
if sys.platform != "darwin":
SIGRTMAX: Signals
SIGRTMIN: Signals
SIGSEGV: Signals
SIGSTOP: Signals
SIGSYS: Signals
Expand All @@ -111,9 +119,9 @@ SIGWINCH: Signals
SIGXCPU: Signals
SIGXFSZ: Signals

# Windows
CTRL_C_EVENT: int
CTRL_BREAK_EVENT: int
if sys.platform == "win32":
CTRL_C_EVENT: int
CTRL_BREAK_EVENT: int

class struct_siginfo(Tuple[int, int, int, int, int, int, int]):
def __init__(self, sequence: Iterable[int]) -> None: ...
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_whitelists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,6 @@ shlex.shlex.__init__
shlex.shlex.error_leader
shlex.shlex.sourcehook
shutil.register_unpack_format
signal.CTRL_BREAK_EVENT
signal.CTRL_C_EVENT
signal.SIGBREAK
signal.SIGEMT
signal.SIGINFO
site.getsitepackages
Expand Down