asyncio: mark positional-only args (#3934)

This commit is contained in:
Shantanu
2020-04-22 10:34:30 -07:00
committed by GitHub
parent 990e648928
commit 0532e72e7f
3 changed files with 4 additions and 18 deletions

View File

@@ -52,9 +52,9 @@ class Future(Awaitable[_T], Iterable[_T]):
def done(self) -> bool: ...
def result(self) -> _T: ...
def exception(self) -> Optional[BaseException]: ...
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 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]: ...

View File

@@ -110,7 +110,7 @@ class Task(Future[_T], Generic[_T]):
if sys.version_info >= (3, 8):
def get_coro(self) -> Any: ...
def get_name(self) -> str: ...
def set_name(self, value: object) -> None: ...
def set_name(self, __value: object) -> None: ...
def get_stack(self, *, limit: int = ...) -> List[FrameType]: ...
def print_stack(self, *, limit: int = ..., file: TextIO = ...) -> None: ...
def cancel(self) -> bool: ...

View File

@@ -9,14 +9,7 @@ asyncio.AbstractEventLoop.sock_sendfile
asyncio.Future.__init__
asyncio.Future._callbacks
asyncio.Future._schedule_callbacks
asyncio.Future.remove_done_callback
asyncio.Future.set_exception
asyncio.Future.set_result
asyncio.Handle.__init__
asyncio.Task.remove_done_callback
asyncio.Task.set_exception
asyncio.Task.set_name
asyncio.Task.set_result
asyncio.TimerHandle.__init__
asyncio.events.AbstractEventLoop.sock_sendfile
asyncio.events.Handle.__init__
@@ -24,14 +17,7 @@ asyncio.events.TimerHandle.__init__
asyncio.futures.Future.__init__
asyncio.futures.Future._callbacks
asyncio.futures.Future._schedule_callbacks
asyncio.futures.Future.remove_done_callback
asyncio.futures.Future.set_exception
asyncio.futures.Future.set_result
asyncio.proactor_events._ProactorBasePipeTransport.__del__
asyncio.tasks.Task.remove_done_callback
asyncio.tasks.Task.set_exception
asyncio.tasks.Task.set_name
asyncio.tasks.Task.set_result
bdb.Bdb.runcall
builtins.bytearray.extend
builtins.bytearray.pop