mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Remove empty __init__ methods (#8816)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user