mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Apply fixes, remove duplicates.
Apply fixes to _random, cStringIO, errno, operator, sys, zlib, etc.; also, remove duplicate 2.7/math.pyi, 2.7/marshal.pyi.
This commit is contained in:
+50
-44
@@ -1,60 +1,66 @@
|
||||
from typing import Callable, Any, Tuple, Union
|
||||
|
||||
SIG_DFL = 0
|
||||
SIG_IGN = 0
|
||||
SIG_DFL = ... # type: long
|
||||
SIG_IGN = ... # type: long
|
||||
ITIMER_REAL = ... # type: long
|
||||
ITIMER_VIRTUAL = ... # type: long
|
||||
ITIMER_PROF = ... # type: long
|
||||
|
||||
SIGABRT = 0
|
||||
SIGALRM = 0
|
||||
SIGBUS = 0
|
||||
SIGCHLD = 0
|
||||
SIGCLD = 0
|
||||
SIGCONT = 0
|
||||
SIGFPE = 0
|
||||
SIGHUP = 0
|
||||
SIGILL = 0
|
||||
SIGINT = 0
|
||||
SIGIO = 0
|
||||
SIGIOT = 0
|
||||
SIGKILL = 0
|
||||
SIGPIPE = 0
|
||||
SIGPOLL = 0
|
||||
SIGPROF = 0
|
||||
SIGPWR = 0
|
||||
SIGQUIT = 0
|
||||
SIGRTMAX = 0
|
||||
SIGRTMIN = 0
|
||||
SIGSEGV = 0
|
||||
SIGSTOP = 0
|
||||
SIGSYS = 0
|
||||
SIGTERM = 0
|
||||
SIGTRAP = 0
|
||||
SIGTSTP = 0
|
||||
SIGTTIN = 0
|
||||
SIGTTOU = 0
|
||||
SIGURG = 0
|
||||
SIGUSR1 = 0
|
||||
SIGUSR2 = 0
|
||||
SIGVTALRM = 0
|
||||
SIGWINCH = 0
|
||||
SIGXCPU = 0
|
||||
SIGXFSZ = 0
|
||||
SIGABRT = ... # type: int
|
||||
SIGALRM = ... # type: int
|
||||
SIGBUS = ... # type: int
|
||||
SIGCHLD = ... # type: int
|
||||
SIGCLD = ... # type: int
|
||||
SIGCONT = ... # type: int
|
||||
SIGFPE = ... # type: int
|
||||
SIGHUP = ... # type: int
|
||||
SIGILL = ... # type: int
|
||||
SIGINT = ... # type: int
|
||||
SIGIO = ... # type: int
|
||||
SIGIOT = ... # type: int
|
||||
SIGKILL = ... # type: int
|
||||
SIGPIPE = ... # type: int
|
||||
SIGPOLL = ... # type: int
|
||||
SIGPROF = ... # type: int
|
||||
SIGPWR = ... # type: int
|
||||
SIGQUIT = ... # type: int
|
||||
SIGRTMAX = ... # type: int
|
||||
SIGRTMIN = ... # type: int
|
||||
SIGSEGV = ... # type: int
|
||||
SIGSTOP = ... # type: int
|
||||
SIGSYS = ... # type: int
|
||||
SIGTERM = ... # type: int
|
||||
SIGTRAP = ... # type: int
|
||||
SIGTSTP = ... # type: int
|
||||
SIGTTIN = ... # type: int
|
||||
SIGTTOU = ... # type: int
|
||||
SIGURG = ... # type: int
|
||||
SIGUSR1 = ... # type: int
|
||||
SIGUSR2 = ... # type: int
|
||||
SIGVTALRM = ... # type: int
|
||||
SIGWINCH = ... # type: int
|
||||
SIGXCPU = ... # type: int
|
||||
SIGXFSZ = ... # type: int
|
||||
NSIG = ... # type: int
|
||||
|
||||
# Python 3 only:
|
||||
CTRL_C_EVENT = 0
|
||||
CTRL_BREAK_EVENT = 0
|
||||
GSIG = 0
|
||||
ITIMER_REAL = 0
|
||||
ITIMER_VIRTUAL = 0
|
||||
ITIMER_PROF = 0
|
||||
|
||||
class ItimerError(IOError): ...
|
||||
|
||||
_HANDLER = Union[Callable[[int, Any], Any], int, None]
|
||||
|
||||
def alarm(time: float) -> int: ...
|
||||
def alarm(time: int) -> int: ...
|
||||
def getsignal(signalnum: int) -> _HANDLER: ...
|
||||
def pause() -> None: ...
|
||||
def setitimer(which: int, seconds: float, interval: float = None) -> Tuple[float, float]: ...
|
||||
def getitimer(which: int) -> Tuple[float, float]: ...
|
||||
def set_wakeup_fd(fd: int) -> None: ...
|
||||
def siginterrupt(signalnum: int, flag: bool) -> None: ...
|
||||
def signal(signalnum: int, handler: _HANDLER) -> None: ...
|
||||
def set_wakeup_fd(fd: int) -> long: ...
|
||||
def siginterrupt(signalnum: int, flag: bool) -> None:
|
||||
raise RuntimeError()
|
||||
def signal(signalnum: int, handler: _HANDLER) -> None:
|
||||
raise RuntimeError()
|
||||
def default_int_handler(*args, **kwargs) -> Any:
|
||||
raise KeyboardInterrupt()
|
||||
|
||||
Reference in New Issue
Block a user