mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
remove "= ..." from top-level values (#6930)
This commit is contained in:
@@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Tuple, overload
|
||||
# cyclic dependence with asynchat
|
||||
_maptype = Dict[int, Any]
|
||||
|
||||
socket_map: _maptype = ... # undocumented
|
||||
socket_map: _maptype # undocumented
|
||||
|
||||
class ExitNow(Exception): ...
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ _T = TypeVar("_T")
|
||||
_TraceDispatch = Callable[[FrameType, str, Any], Any] # TODO: Recursive type
|
||||
_ExcInfo = Tuple[Type[BaseException], BaseException, FrameType]
|
||||
|
||||
GENERATOR_AND_COROUTINE_FLAGS: int = ...
|
||||
GENERATOR_AND_COROUTINE_FLAGS: int
|
||||
|
||||
class BdbQuit(Exception): ...
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ _T = TypeVar("_T")
|
||||
_DLLT = TypeVar("_DLLT", bound=CDLL)
|
||||
_CT = TypeVar("_CT", bound=_CData)
|
||||
|
||||
RTLD_GLOBAL: int = ...
|
||||
RTLD_LOCAL: int = ...
|
||||
DEFAULT_MODE: int = ...
|
||||
RTLD_GLOBAL: int
|
||||
RTLD_LOCAL: int
|
||||
DEFAULT_MODE: int
|
||||
|
||||
class CDLL(object):
|
||||
_func_flags_: ClassVar[int] = ...
|
||||
@@ -51,12 +51,12 @@ class LibraryLoader(Generic[_DLLT]):
|
||||
def __getitem__(self, name: str) -> _DLLT: ...
|
||||
def LoadLibrary(self, name: str) -> _DLLT: ...
|
||||
|
||||
cdll: LibraryLoader[CDLL] = ...
|
||||
cdll: LibraryLoader[CDLL]
|
||||
if sys.platform == "win32":
|
||||
windll: LibraryLoader[WinDLL] = ...
|
||||
oledll: LibraryLoader[OleDLL] = ...
|
||||
pydll: LibraryLoader[PyDLL] = ...
|
||||
pythonapi: PyDLL = ...
|
||||
windll: LibraryLoader[WinDLL]
|
||||
oledll: LibraryLoader[OleDLL]
|
||||
pydll: LibraryLoader[PyDLL]
|
||||
pythonapi: PyDLL
|
||||
|
||||
# Anything that implements the read-write buffer interface.
|
||||
# The buffer interface is defined purely on the C level, so we cannot define a normal Protocol
|
||||
|
||||
@@ -7,7 +7,7 @@ _ValueType = Union[str, bytes]
|
||||
|
||||
class error(OSError): ...
|
||||
|
||||
library: str = ...
|
||||
library: str
|
||||
|
||||
# Actual typename dbm, not exposed by the implementation
|
||||
class _dbm:
|
||||
|
||||
@@ -1,57 +1,57 @@
|
||||
from types import FrameType
|
||||
from typing import Callable, Tuple, Union
|
||||
|
||||
SIG_DFL: int = ...
|
||||
SIG_IGN: int = ...
|
||||
SIG_DFL: int
|
||||
SIG_IGN: int
|
||||
|
||||
ITIMER_REAL: int = ...
|
||||
ITIMER_VIRTUAL: int = ...
|
||||
ITIMER_PROF: int = ...
|
||||
ITIMER_REAL: int
|
||||
ITIMER_VIRTUAL: int
|
||||
ITIMER_PROF: int
|
||||
|
||||
NSIG: int = ...
|
||||
NSIG: int
|
||||
|
||||
SIGABRT: int = ...
|
||||
SIGALRM: int = ...
|
||||
SIGBREAK: int = ... # Windows
|
||||
SIGBUS: int = ...
|
||||
SIGCHLD: int = ...
|
||||
SIGCLD: int = ...
|
||||
SIGCONT: int = ...
|
||||
SIGEMT: int = ...
|
||||
SIGFPE: int = ...
|
||||
SIGHUP: int = ...
|
||||
SIGILL: int = ...
|
||||
SIGINFO: int = ...
|
||||
SIGINT: int = ...
|
||||
SIGIO: int = ...
|
||||
SIGIOT: int = ...
|
||||
SIGKILL: int = ...
|
||||
SIGPIPE: int = ...
|
||||
SIGPOLL: int = ...
|
||||
SIGPROF: int = ...
|
||||
SIGPWR: int = ...
|
||||
SIGQUIT: int = ...
|
||||
SIGRTMAX: int = ...
|
||||
SIGRTMIN: int = ...
|
||||
SIGSEGV: int = ...
|
||||
SIGSTOP: int = ...
|
||||
SIGSYS: int = ...
|
||||
SIGTERM: int = ...
|
||||
SIGTRAP: int = ...
|
||||
SIGTSTP: int = ...
|
||||
SIGTTIN: int = ...
|
||||
SIGTTOU: int = ...
|
||||
SIGURG: int = ...
|
||||
SIGUSR1: int = ...
|
||||
SIGUSR2: int = ...
|
||||
SIGVTALRM: int = ...
|
||||
SIGWINCH: int = ...
|
||||
SIGXCPU: int = ...
|
||||
SIGXFSZ: int = ...
|
||||
SIGABRT: int
|
||||
SIGALRM: int
|
||||
SIGBREAK: int # Windows
|
||||
SIGBUS: int
|
||||
SIGCHLD: int
|
||||
SIGCLD: int
|
||||
SIGCONT: int
|
||||
SIGEMT: int
|
||||
SIGFPE: int
|
||||
SIGHUP: int
|
||||
SIGILL: int
|
||||
SIGINFO: int
|
||||
SIGINT: int
|
||||
SIGIO: int
|
||||
SIGIOT: int
|
||||
SIGKILL: int
|
||||
SIGPIPE: int
|
||||
SIGPOLL: int
|
||||
SIGPROF: int
|
||||
SIGPWR: int
|
||||
SIGQUIT: int
|
||||
SIGRTMAX: int
|
||||
SIGRTMIN: int
|
||||
SIGSEGV: int
|
||||
SIGSTOP: int
|
||||
SIGSYS: int
|
||||
SIGTERM: int
|
||||
SIGTRAP: int
|
||||
SIGTSTP: int
|
||||
SIGTTIN: int
|
||||
SIGTTOU: int
|
||||
SIGURG: int
|
||||
SIGUSR1: int
|
||||
SIGUSR2: int
|
||||
SIGVTALRM: int
|
||||
SIGWINCH: int
|
||||
SIGXCPU: int
|
||||
SIGXFSZ: int
|
||||
|
||||
# Windows
|
||||
CTRL_C_EVENT: int = ...
|
||||
CTRL_BREAK_EVENT: int = ...
|
||||
CTRL_C_EVENT: int
|
||||
CTRL_BREAK_EVENT: int
|
||||
|
||||
class ItimerError(IOError): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user