asyncio: remove private methods that don't exist (#3938)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-04-23 19:20:57 -07:00
committed by GitHub
parent 733c558d60
commit aa84ff750e
6 changed files with 0 additions and 17 deletions

View File

@@ -47,7 +47,6 @@ class Future(Awaitable[_T], Iterable[_T]):
def _callbacks(self: _S) -> List[Callable[[_S], Any]]: ...
def add_done_callback(self: _S, __fn: Callable[[_S], Any]) -> None: ...
def cancel(self) -> bool: ...
def _schedule_callbacks(self) -> None: ...
def cancelled(self) -> bool: ...
def done(self) -> bool: ...
def result(self) -> _T: ...
@@ -55,7 +54,6 @@ class Future(Awaitable[_T], Iterable[_T]):
def remove_done_callback(self: _S, __fn: Callable[[_S], Any]) -> int: ...
def set_result(self, __result: _T) -> None: ...
def set_exception(self, __exception: Union[type, BaseException]) -> None: ...
def _copy_state(self, other: Any) -> None: ...
def __iter__(self) -> Generator[Any, None, _T]: ...
def __await__(self) -> Generator[Any, None, _T]: ...
@property

View File

@@ -14,8 +14,6 @@ class Queue(Generic[_T]):
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
def _format(self) -> str: ...
def _consume_done_getters(self) -> None: ...
def _consume_done_putters(self) -> None: ...
def qsize(self) -> int: ...
@property
def maxsize(self) -> int: ...

View File

@@ -114,7 +114,6 @@ class Task(Future[_T], Generic[_T]):
def get_stack(self, *, limit: int = ...) -> List[FrameType]: ...
def print_stack(self, *, limit: int = ..., file: TextIO = ...) -> None: ...
def cancel(self) -> bool: ...
def _step(self, value: Any = ..., exc: Exception = ...) -> None: ...
if sys.version_info < (3, 7):
def _wakeup(self, future: Future[Any]) -> None: ...

View File

@@ -5,7 +5,6 @@ _tracemalloc.start
asyncio.AbstractEventLoop.sock_sendfile
asyncio.Future.__init__
asyncio.Future._callbacks
asyncio.Future._schedule_callbacks
asyncio.Handle.__init__
asyncio.TimerHandle.__init__
asyncio.events.AbstractEventLoop.sock_sendfile
@@ -14,7 +13,6 @@ asyncio.events.TimerHandle.__init__
asyncio.exceptions
asyncio.futures.Future.__init__
asyncio.futures.Future._callbacks
asyncio.futures.Future._schedule_callbacks
builtins.dict.get
builtins.reversed
builtins.str.maketrans

View File

@@ -8,7 +8,6 @@ _weakref.getweakrefcount
asyncio.AbstractEventLoop.sock_sendfile
asyncio.Future.__init__
asyncio.Future._callbacks
asyncio.Future._schedule_callbacks
asyncio.Handle.__init__
asyncio.TimerHandle.__init__
asyncio.events.AbstractEventLoop.sock_sendfile
@@ -16,7 +15,6 @@ asyncio.events.Handle.__init__
asyncio.events.TimerHandle.__init__
asyncio.futures.Future.__init__
asyncio.futures.Future._callbacks
asyncio.futures.Future._schedule_callbacks
asyncio.proactor_events._ProactorBasePipeTransport.__del__
bdb.Bdb.runcall
builtins.bytearray.extend

View File

@@ -19,17 +19,12 @@ asyncio.BaseEventLoop.subprocess_exec
asyncio.Condition.acquire
asyncio.Condition.locked
asyncio.Condition.release
asyncio.Future._copy_state
asyncio.Queue._consume_done_getters
asyncio.Queue._consume_done_putters
asyncio.Server
asyncio.StreamReaderProtocol.__init__
asyncio.Task._step
asyncio.Task.get_stack
asyncio.Task.print_stack
asyncio.WriteTransport.set_write_buffer_limits
asyncio.base_events.BaseEventLoop.subprocess_exec
asyncio.futures.Future._copy_state
asyncio.futures.wrap_future
asyncio.locks.Condition.acquire
asyncio.locks.Condition.locked
@@ -37,8 +32,6 @@ asyncio.locks.Condition.release
asyncio.open_connection
asyncio.open_unix_connection
asyncio.proactor_events.BaseProactorEventLoop.sock_recv
asyncio.queues.Queue._consume_done_getters
asyncio.queues.Queue._consume_done_putters
asyncio.selector_events.BaseSelectorEventLoop.sock_recv
asyncio.sleep
asyncio.start_unix_server
@@ -46,7 +39,6 @@ asyncio.streams.StreamReaderProtocol.__init__
asyncio.streams.open_connection
asyncio.streams.open_unix_connection
asyncio.streams.start_unix_server
asyncio.tasks.Task._step
asyncio.tasks.Task.get_stack
asyncio.tasks.Task.print_stack
asyncio.tasks.sleep