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

@@ -35,7 +35,6 @@ _T = TypeVar("_T")
_P = ParamSpec("_P")
class Future(Generic[_T]):
def __init__(self) -> None: ...
def cancel(self) -> bool: ...
def cancelled(self) -> bool: ...
def running(self) -> bool: ...
@@ -90,14 +89,12 @@ def wait(fs: Iterable[Future[_T]], timeout: float | None = ..., return_when: str
class _Waiter:
event: threading.Event
finished_futures: list[Future[Any]]
def __init__(self) -> None: ...
def add_result(self, future: Future[Any]) -> None: ...
def add_exception(self, future: Future[Any]) -> None: ...
def add_cancelled(self, future: Future[Any]) -> None: ...
class _AsCompletedWaiter(_Waiter):
lock: threading.Lock
def __init__(self) -> None: ...
class _FirstCompletedWaiter(_Waiter): ...

View File

@@ -19,7 +19,6 @@ class _ThreadWakeup:
_closed: bool
_reader: Connection
_writer: Connection
def __init__(self) -> None: ...
def close(self) -> None: ...
def wakeup(self) -> None: ...
def clear(self) -> None: ...