mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
asyncio: mark positional-only args (#3934)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user