remove "= ..." from top-level values (#6930)

This commit is contained in:
Jelle Zijlstra
2022-01-16 08:38:00 -08:00
committed by GitHub
parent 425ba77bb2
commit 339bfbbfaa
8 changed files with 118 additions and 119 deletions

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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:

View File

@@ -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): ...