Remove empty __init__ methods (#8816)

This commit is contained in:
Nikita Sobolev
2022-09-30 15:08:41 +03:00
committed by GitHub
parent deff426b6f
commit 380022c650
33 changed files with 1 additions and 44 deletions

View File

@@ -9,7 +9,6 @@ MAXFDS_TO_SEND: int
SIGNED_STRUCT: Struct
class ForkServer:
def __init__(self) -> None: ...
def set_forkserver_preload(self, modules_names: list[str]) -> None: ...
def get_inherited_fds(self) -> list[int] | None: ...
def connect_to_new_process(self, fds: Sequence[int]) -> tuple[int, int]: ...

View File

@@ -4,7 +4,6 @@ from collections.abc import Sized
__all__ = ["ensure_running", "register", "unregister"]
class ResourceTracker:
def __init__(self) -> None: ...
def getfd(self) -> int | None: ...
def ensure_running(self) -> None: ...
def register(self, name: Sized, rtype: Incomplete) -> None: ...

View File

@@ -69,12 +69,10 @@ def is_exiting() -> bool: ...
class ForkAwareThreadLock:
acquire: Callable[[bool, float], bool]
release: Callable[[], None]
def __init__(self) -> None: ...
def __enter__(self) -> bool: ...
def __exit__(self, *args: object) -> None: ...
class ForkAwareLocal(threading.local):
def __init__(self) -> None: ...
class ForkAwareLocal(threading.local): ...
MAXFD: int